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 "interactive.h"
#include <cmath>
#include <algorithm>
#include <set>
#include <cassert>
using namespace std;
set < int > s;
vector < int > guess(int n) {
vector <int> ans;
for (int i = 1; i <= n; i++) {
ans.push_back(ask(i));
s.insert(ans.back());
}
assert(s.size()==ans.size());
return ans;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |