# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
423061 | 2021-06-10T16:51:54 Z | chirathnirodha | Hotter Colder (IOI10_hottercolder) | C++17 | 1936 ms | 262144 KB |
#include "grader.h" #include<bits/stdc++.h> using namespace std; int HC(int N){ int l=1,r=N; if(N==1)return 1; while(true){ if(l-r+1==2){ Guess(l); int xx=Guess(r); if(r==1)return r; else return l; } int a=(l+r+3)/4; int b=(l+r)*3/4; Guess(a); int y=Guess(b); if(y==0)return (a+b)/2; else if(y==1)l=(a+b+1)/2; else r=(a+b)/2; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 92 ms | 45380 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 95 ms | 45416 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 88 ms | 45324 KB | Output isn't correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1936 ms | 262144 KB | Output isn't correct - alpha = 0.000000000000 |