Submission #853246

#TimeUsernameProblemLanguageResultExecution timeMemory
853246JoksimKaktusHotter Colder (IOI10_hottercolder)C++17
0 / 100
10054 ms262144 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; int HC(int N_){ int l = 1; int r = 500; int g = r; Guess(l); while(l < r){ int k = Guess(g); int mid = (l+r)/2; if(k == 0){ return mid; }else if(k == 1){ if(g != r){ Guess(r); } l = mid; g = l; }else{ if(g != l){ Guess(l); } r = mid; g = r; } } return l; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...