# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
799634 | 2023-07-31T17:15:53 Z | Liudas | Hotter Colder (IOI10_hottercolder) | C++17 | 489 ms | 31504 KB |
#include <bits/stdc++.h> #include "grader.h" using namespace std; int HC(int N){ int l = 1, r = N; int op = 1; while(l < r){ int mid = (l + r) / 2; Guess(l); int t = Guess(r); //cout << l << " " << r << " " << mid << " " << t << endl; if(t == 1){ l = mid + 1; } if(t == -1){ r = mid - 1; } if(t == 0){ //cout << "WTF" << endl; return mid; } } return l; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 20 ms | 4108 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 20 ms | 4024 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 20 ms | 4068 KB | Output isn't correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 489 ms | 31504 KB | Output isn't correct - alpha = 0.000000000000 |