# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
43891 | 2018-03-27T07:02:00 Z | dhkim0225 | cmp (balkan11_cmp) | C++14 | 2 ms | 248 KB |
#include "cmp.h" void remember(int n) { bit_set(n); } int compare(int b) { for (int i = 1; i < 4095; i++) { if (bit_get(i) == 1) { if (b < i) return -1; else if (b == i) return 0; else return 1; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 248 KB | ZERO POINTS: bit_set with addr out of range 0 |