# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
548859 | 2022-04-14T15:18:28 Z | Trisanu_Das | Hotter Colder (IOI10_hottercolder) | C++17 | 10000 ms | 8096 KB |
#include <bits/stdc++.h> #include "grader.h" using namespace std; int HC(int n){ // prev submission had bs wrong. looks like I'm forgetting binary search. int l = 1, r = n; while(l < r){ int mid = (l + r) / 2; Guess(l); int try_ = Guess(r); if(try_ == 0) return mid; else if(try_ == 1) l = mid; else r = mid; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 10032 ms | 1236 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 10037 ms | 1236 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 10036 ms | 1236 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 10086 ms | 8096 KB | Time limit exceeded |