Submission #1012394

#TimeUsernameProblemLanguageResultExecution timeMemory
1012394huutuanHotter Colder (IOI10_hottercolder)C++14
50 / 100
388 ms8208 KiB
#include "grader.h" int HC(int N){ int l=1, r=N; int cnt=0; while (l<=r){ int mid=(l+r)>>1; if (l==r) return mid; Guess(l); int t=Guess(r); if (!t) return mid; if (t==1) l=mid+1; else r=mid; } return -1; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:5:8: warning: unused variable 'cnt' [-Wunused-variable]
    5 |    int cnt=0;
      |        ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...