제출 #566420

#제출 시각아이디문제언어결과실행 시간메모리
566420Temmie커다란 상품 (IOI17_prize)C++17
0 / 100
1 ms296 KiB
//#include "public_a/cpp/prize.h" #include "prize.h" #include <bits/stdc++.h> int find_best(int n) { if (!ask(0)[1]) { return 0; } int ans = n - 1; int l = 0, r = n - 2; while (l <= r) { int mid = (l + r) >> 1; if (!ask(mid)[0]) { ans = mid; l = mid + 1; } else { r = mid - 1; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...