Submission #1010108

#TimeUsernameProblemLanguageResultExecution timeMemory
1010108NomioHotter Colder (IOI10_hottercolder)C++17
50 / 100
359 ms8148 KiB
#include<bits/stdc++.h> using namespace std; int Guess(int G); int HC(int n) { int l = 1, r = n; while(l < r) { int mid = (l + r) / 2; int x = Guess(mid); int y = Guess(mid + 1); if(y == 1) { l = mid + 1; } else { r = mid; } } return l; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:8:7: warning: unused variable 'x' [-Wunused-variable]
    8 |   int x = Guess(mid);
      |       ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...