Submission #199320

# Submission time Handle Problem Language Result Execution time Memory
199320 2020-01-31T08:27:50 Z mythos Hotter Colder (IOI10_hottercolder) C
25 / 100
10000 ms 24640 KB
#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