Submission #548861

#TimeUsernameProblemLanguageResultExecution timeMemory
548861Trisanu_DasHotter Colder (IOI10_hottercolder)C++17
0 / 100
10086 ms8020 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; int HC(int n){ // fk. forgot <= int l = 1, r = n; while(l <= r){ int mid = (l + r) / 2; Guess(l); int try_ = Guess(r); if(try_ == 0) return mid; else if(try_ == 1) l = mid; else r = mid; } }

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...