Submission #1252232

#TimeUsernameProblemLanguageResultExecution timeMemory
1252232PlayVoltzThe Big Prize (IOI17_prize)C++20
20 / 100
23 ms408 KiB
#include "prize.h" #include <bits/stdc++.h> using namespace std; int find_best(int n){ int low=-1, high=n; while (low+1<high){ int mid=(low+high)/2; vector<int> res=ask(mid); if (!(res[0]+res[1]))return mid; if (res[0])high=mid; else low=mid; } }

Compilation message (stderr)

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