#include <bits/stdc++.h>
using namespace std;
#include "dango3.h"
int vis[405];
void Solve(int N, int M) {
for(int i=1;i<=M;i++){
vector <int> fin;
for(int j=1;j<=N*M;j++){
if(vis[j])continue;
vector <int> stuf;
for(int k=1;k<=N*M;k++){
if(vis[k] || k == j)continue;
stuf.push_back(k);
}
if(Query(stuf) == M - i){
fin.push_back(j);
vis[j] = 1;
}
}
Answer(fin);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
316 KB |
Output is correct |
3 |
Correct |
1 ms |
340 KB |
Output is correct |
4 |
Correct |
0 ms |
312 KB |
Output is correct |
5 |
Correct |
1 ms |
340 KB |
Output is correct |
6 |
Correct |
0 ms |
308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
14 ms |
372 KB |
Wrong Answer [4] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
81 ms |
388 KB |
Wrong Answer [4] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
124 ms |
400 KB |
Wrong Answer [4] |
2 |
Halted |
0 ms |
0 KB |
- |