Submission #828171

#TimeUsernameProblemLanguageResultExecution timeMemory
828171tolbiThe Big Prize (IOI17_prize)C++17
0 / 100
95 ms336 KiB
#include <bits/stdc++.h>
using namespace std;
#include "prize.h"
mt19937 ayahya(chrono::high_resolution_clock().now().time_since_epoch().count());
int find_best(int n) {
    for (int i = 0; i <= 10000; i++){
        int pos = ayahya()%n;
        vector<int> res = ask(pos);
        if (res[0]+res[1]==0) return pos;
    }
    return 23;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...