Submission #1077081

#TimeUsernameProblemLanguageResultExecution timeMemory
1077081boyliguanhanHotter Colder (IOI10_hottercolder)C++17
50 / 100
367 ms24400 KiB
int Guess(int N); int HC(int N){ int l=1,r=N; while(l<r){ int mid=l+r>>1; Guess(mid); int x=Guess(mid+1); if(x<0) r=mid; else l=mid+1; } return l; }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:5:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
    5 |     int mid=l+r>>1;
      |             ~^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...