Submission #292363

# Submission time Handle Problem Language Result Execution time Memory
292363 2020-09-06T21:43:37 Z kingfran1907 Sob (COCI19_sob) C++14
0 / 110
1 ms 384 KB
#include <bits/stdc++.h>
#define X first
#define Y second

using namespace std;
typedef long long llint;

const int maxn = 2e5+10;
const int base = 31337;
const int mod = 1e9+7;
const int inf = 0x3f3f3f3f;
const int logo = 20;
const int off = 1 << logo;
const int treesiz = off << 1;

int n, m;
int main() {
	scanf("%d%d", &n, &m);
 	n--;
	while (n >= 0) {
		int tren = m;
		while ((tren & n) != n) tren++;
		for (int i = tren; i >= m; i--) 
			printf("%d %d\n", n--, i);
	}
	return 0;
}

Compilation message

sob.cpp: In function 'int main()':
sob.cpp:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   18 |  scanf("%d%d", &n, &m);
      |  ~~~~~^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -