# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
834423 | Josia | The Big Prize (IOI17_prize) | C++17 | 58 ms | 1320 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "prize.h"
using namespace std;
#include <bits/stdc++.h>
int numBetter = 0;
map<int, vector<int>> rem;
set<pair<int, int>> BSstuff;
int getNumBetter(vector<int> x) {
return x[0]+x[1];
}
vector<int> myAsk(int pos) {
if (rem.count(pos)) return rem[pos];
rem[pos] = ask(pos);
if (getNumBetter(rem[pos]) == numBetter) {
BSstuff.insert({-rem[pos][1], pos});
}
return rem[pos];
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |