#include <bits/stdc++.h>
using namespace std;
#include "dango3.h"
int vis[20005];
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);
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
340 KB |
Output is correct |
2 |
Correct |
0 ms |
340 KB |
Output is correct |
3 |
Correct |
0 ms |
340 KB |
Output is correct |
4 |
Correct |
0 ms |
340 KB |
Output is correct |
5 |
Correct |
0 ms |
340 KB |
Output is correct |
6 |
Correct |
0 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
37 ms |
340 KB |
Output is correct |
2 |
Correct |
35 ms |
340 KB |
Output is correct |
3 |
Correct |
35 ms |
340 KB |
Output is correct |
4 |
Correct |
34 ms |
368 KB |
Output is correct |
5 |
Correct |
36 ms |
340 KB |
Output is correct |
6 |
Correct |
36 ms |
340 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1705 ms |
592 KB |
Wrong Answer [3] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3653 ms |
632 KB |
Wrong Answer [3] |
2 |
Halted |
0 ms |
0 KB |
- |