제출 #613901

#제출 시각아이디문제언어결과실행 시간메모리
613901Mr_HusanboyThe Big Prize (IOI17_prize)C++14
0 / 100
89 ms844 KiB
#include "prize.h"
#include<bits/stdc++.h>

using namespace std;
#define all(a) (a).begin(), (a).end()
#define vi vector<int>
#define ff first
#define ss second

int find_best(int n) {
	set<int> used;
	int k = rand() % n;
	vi res = ask(k);
	used.insert(k);
	while(res != vi{0,0}){
        while(used.count(k)) k = rand()%n;
        used.insert(k);
        res = ask(k);
	}
	return k;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...