# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1252232 | PlayVoltz | 커다란 상품 (IOI17_prize) | C++20 | 23 ms | 408 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;
}
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |