Submission #41522

# Submission time Handle Problem Language Result Execution time Memory
41522 2018-02-18T10:12:28 Z pica4500 cmp (balkan11_cmp) C++
0 / 100
965 ms 82448 KB
#include "cmp.h"
#include <algorithm>
using namespace std;
void remember(int n) {
	bit_set(n + 1);
}

int compare(int b) {
	b++;
	if (bit_get(b)) return 0;
	for (int i = 1; i < min(1000, b); i++) if (bit_get(i)) return 1;
	return -1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 965 ms 82448 KB ZERO POINTS: For a=3040 and b=3318, correct answer is 1, got -1