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 "grader.h"
#include <algorithm>
#include <vector>
using namespace std;
void solve(int N) {
vector<int> a;
for (int i = 1; i <= N; ++i) a.push_back(i);
while (true) {
if (query(a) == N) return;
next_permutation(a.begin(), a.end());
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |