Submission #774856

#TimeUsernameProblemLanguageResultExecution timeMemory
774856JomnoiHotter Colder (IOI10_hottercolder)C++17
0 / 100
508 ms156980 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; int HC(int N){ int l = 1, r = N, ans = -1; while (l <= r) { int mid = (l + r) / 2; int res1 = Guess(mid), res2 = Guess(mid + 1); if (res1 == 1) l = mid + 1; else r = mid - 1, ans = mid; } return ans; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:10:32: warning: unused variable 'res2' [-Wunused-variable]
   10 |         int res1 = Guess(mid), res2 = Guess(mid + 1);
      |                                ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...