#include "grader.h"
int HC(int n) {
if (n == 1) return n;
int g = 1, r = Guess(g);
while (r != -1 && g != n) {
g = g + 1;
r = Guess(g);
}
if (r == -1) return g - 1;
else return g;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
93 ms |
1272 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
101 ms |
1272 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
102 ms |
1276 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
10053 ms |
24640 KB |
Time limit exceeded |