Submission #1012391

#TimeUsernameProblemLanguageResultExecution timeMemory
1012391huutuanHotter Colder (IOI10_hottercolder)C++14
0 / 100
10083 ms24404 KiB
#include "grader.h" int HC(int N){ int l=1, r=N; while (l<=r){ int mid=(l+r)>>1; int t1=Guess(l); int t2=Guess(r); if (!t2) return mid; if (t2==1) l=mid; else r=mid; } return -1; }

Compilation message (stderr)

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