# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
43872 |
2018-03-26T12:59:00 Z |
kdk8361 |
cmp (balkan11_cmp) |
C++17 |
|
959 ms |
82472 KB |
#include "cmp.h"
void remember(int n) {
//edit this
for (int i = 1; i <= 12; ++i)
if (n&(1 << (13 - i)))
bit_set(i);
}
int compare(int b) {
//edit this
int a = 0;
for (int i = 1; i <= 12; ++i) {
if (bit_get(i))
a += (1 << (13 - i));
}
if (b < a) return -1;
else if (b == a) return 0;
else return 1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
959 ms |
82472 KB |
ZERO POINTS: For a=2215 and b=2214, correct answer is -1, got 0 |