# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
231492 | 2020-05-13T19:25:10 Z | muhammad_hokimiyon | Hotter Colder (IOI10_hottercolder) | C++14 | 773 ms | 22264 KB |
#include<bits/stdc++.h> #include "grader.h" using namespace std; int HC(int nn) { int Q = 0; int ls1 = 0; int ls2 = 0; int l = 1 , r = nn; while( l < r ){ ls1 = ls2; int m = (l + r) / 2; if( l == 1 && r == 2 ){ int x1 = Guess(1); int x2 = Guess(2); if( x2 == 1 )return 2; return 1; } int x1 = Guess(m - 1); ls2 = m - 1; if( x1 == -1 && m - 1 < ls1 ){ l = m + 1; continue; } if( x1 == -1 && m - 1 > ls1 ){ r = m - 1; continue; } ls2 = m + 1; int x2 = Guess(m + 1); if( x2 == 0 ){ return m; } if( x2 == 1 )l = m + 1; else r = m - 1; } return l; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 29 ms | 2816 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 31 ms | 2808 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 30 ms | 2816 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 773 ms | 22264 KB | Output isn't correct - alpha = 0.000000000000 |