Submission #927248

# Submission time Handle Problem Language Result Execution time Memory
927248 2024-02-14T14:05:12 Z vjudge1 Hotter Colder (IOI10_hottercolder) C++11
0 / 100
10000 ms 8144 KB
#include <bits/stdc++.h>
using namespace std;

int Guess(int);

int HC(int n) {
    for(int i = 1; i <= n; i++) {
        for(int j = i + 2; j <= n; j++) {
            Guess(i);
            if(!Guess(j)) return (j + i) >> 1;
        }
    }
}

Compilation message

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^
# Verdict Execution time Memory Grader output
1 Execution timed out 10027 ms 7104 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10015 ms 7340 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10098 ms 7112 KB Time limit exceeded
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Execution timed out 10017 ms 8144 KB Time limit exceeded
2 Halted 0 ms 0 KB -