Submission #1010082

#TimeUsernameProblemLanguageResultExecution timeMemory
1010082NomioHotter Colder (IOI10_hottercolder)C++17
0 / 100
345 ms156688 KiB
#include<bits/stdc++.h> #include "grader.h" using namespace std; //int Guess(int x) { // cout << x << endl; // int a; // cin >> a; // return a; //} int HC(int n) { int l, r, last; l = 1; r = n; Guess((l + r) / 2); last = (l + r) / 2; while(l < r) { int mid = (l + r) / 2; int x = Guess((l + mid) / 2); if(x == 0) { return (last + (l + mid) / 2) / 2; } else if(x == 1) { r = mid; } else { l = mid + 1; } } return l; } //int main() { // int n; // cin >> n; // cout << HC(n) << endl; // return 0; //}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...