제출 #844488

#제출 시각아이디문제언어결과실행 시간메모리
84448812345678The Big Prize (IOI17_prize)C++17
20 / 100
57 ms600 KiB
#include "prize.h" #include <bits/stdc++.h> using namespace std; int find_best(int n) { int l=0, r=n-1; while (1) { int md=(l+r)/2; auto ans=ask(md); if (ans[0]==ans[1]&&ans[1]==0) return md; else if (ans[0]==1) r=md-1; else l=md+1; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...