Submission #41062

#TimeUsernameProblemLanguageResultExecution timeMemory
41062meyladyHotter Colder (IOI10_hottercolder)C++14
50 / 100
805 ms8196 KiB
#include "grader.h" int HC(int N){ int left = 1; int right = N; int mid = (left + right) / 2; while (left < right) { int query1 = Guess(left); int query2 = Guess(right); mid = (left + right) / 2; if (query2 == 0)return mid; if (query2 == 1) {//hotter left = mid+1; } else {//colder right = mid; } } return left; }

Compilation message (stderr)

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