| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1329432 | ezzzay | 커다란 상품 (IOI17_prize) | C++20 | 26 ms | 412 KiB |
#include "prize.h"
#include<bits/stdc++.h>
using namespace std;
int find_best(int n) {
vector<int>v=ask(0);
int l=v[0]+v[1];
int x=0;
while(l!=0){
vector<int>v=ask(x);
if(v[0]){
x/=2;
}
else{ // baruun taldaa baigaa
x= (n-1+x)/2;
}
v=ask(x);
l=v[0]+v[1];
}
return x;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
