# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
247362 |
2020-07-11T08:58:35 Z |
dwsc |
Mouse (info1cup19_mouse) |
C++14 |
|
3000 ms |
384 KB |
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
void solve(int N){
vector<int> v;
for (int i = 1; i <= N; i++) v.push_back(i);
do{
random_shuffle(v.begin(),v.end());
int val = query(v);
if (val == N) return;
else if (val == N-2){
for (int i = 0; i < N; i++){
for (int j = i+1; j < N; j++){
swap(v[i],v[j]);
if (query(v) == N) return;
swap(v[i],v[j]);
}
}
}
}while(true);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
384 KB |
Correct! Number of queries: 152 |
2 |
Correct |
5 ms |
256 KB |
Correct! Number of queries: 4 |
3 |
Correct |
5 ms |
384 KB |
Correct! Number of queries: 20 |
4 |
Correct |
8 ms |
256 KB |
Correct! Number of queries: 264 |
5 |
Correct |
5 ms |
256 KB |
Correct! Number of queries: 25 |
6 |
Correct |
5 ms |
384 KB |
Correct! Number of queries: 43 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
384 KB |
Correct! Number of queries: 152 |
2 |
Correct |
5 ms |
256 KB |
Correct! Number of queries: 4 |
3 |
Correct |
5 ms |
384 KB |
Correct! Number of queries: 20 |
4 |
Correct |
8 ms |
256 KB |
Correct! Number of queries: 264 |
5 |
Correct |
5 ms |
256 KB |
Correct! Number of queries: 25 |
6 |
Correct |
5 ms |
384 KB |
Correct! Number of queries: 43 |
7 |
Execution timed out |
3022 ms |
256 KB |
Time limit exceeded |
8 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
384 KB |
Correct! Number of queries: 152 |
2 |
Correct |
5 ms |
256 KB |
Correct! Number of queries: 4 |
3 |
Correct |
5 ms |
384 KB |
Correct! Number of queries: 20 |
4 |
Correct |
8 ms |
256 KB |
Correct! Number of queries: 264 |
5 |
Correct |
5 ms |
256 KB |
Correct! Number of queries: 25 |
6 |
Correct |
5 ms |
384 KB |
Correct! Number of queries: 43 |
7 |
Execution timed out |
3022 ms |
256 KB |
Time limit exceeded |
8 |
Halted |
0 ms |
0 KB |
- |