Submission #102415

#TimeUsernameProblemLanguageResultExecution timeMemory
102415SpeedOfMagicHotter Colder (IOI10_hottercolder)C++17
50 / 100
771 ms8312 KiB
#include "grader.h" #include <bits/stdc++.h> using namespace std; int HC(int N){ int l = 1, r = N; while (l < r) { int mid = (l + r) >> 1; int a = Guess(mid), b = Guess(min(mid + 2, r)); if (b == -1) r = mid; else if (b == 0) return mid + 1; else l = min(mid + 2, r); } return l; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:9:7: warning: unused variable 'a' [-Wunused-variable]
   int a = Guess(mid), b = Guess(min(mid + 2, r));
       ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...