Submission #56132

#TimeUsernameProblemLanguageResultExecution timeMemory
56132leejseoHotter Colder (IOI10_hottercolder)C++98
50 / 100
808 ms8056 KiB
#include "grader.h" #include <stdio.h> #include <algorithm> int HC(int N){ int lo = 1, hi = N; while (lo < hi){ int left = Guess(lo); int right = Guess(hi); int mid = (lo + hi) >> 1; if (right == 0) return mid; if (right == 1) lo = mid+1; else hi = mid; } return lo; }

Compilation message (stderr)

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