#include"key.h"
static int A[111][111];
void EnsureKeyInfo(int N){
for(int i=1;i<=N;i++) for(int j=i+1;j<=N;j++){
TakeKey(i), TakeKey(j);
A[i][j] = A[j][i] = Explore();
}
for(int i=1;i<=N;i++){
TakeKey(i);
int cur = Explore();
for(int j=1;j<=N;j++) if(A[i][j]==cur) Report(i,j);
}
for(int i=1;i<=N;i++) Report(i,i);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
376 KB |
Output is correct |
2 |
Correct |
3 ms |
744 KB |
Output is correct |
3 |
Correct |
3 ms |
744 KB |
Output is correct |
4 |
Correct |
3 ms |
744 KB |
Output is correct |
5 |
Correct |
3 ms |
872 KB |
Output is correct |
6 |
Correct |
3 ms |
872 KB |
Output is correct |
7 |
Correct |
4 ms |
888 KB |
Output is correct |
8 |
Correct |
5 ms |
936 KB |
Output is correct |
9 |
Correct |
5 ms |
936 KB |
Output is correct |
10 |
Correct |
3 ms |
968 KB |
Output is correct |
11 |
Correct |
4 ms |
980 KB |
Output is correct |
12 |
Correct |
4 ms |
980 KB |
Output is correct |
13 |
Correct |
3 ms |
980 KB |
Output is correct |
14 |
Correct |
3 ms |
1112 KB |
Output is correct |
15 |
Correct |
3 ms |
1112 KB |
Output is correct |
16 |
Correct |
3 ms |
1112 KB |
Output is correct |
17 |
Correct |
4 ms |
1112 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
376 KB |
Output is correct |
2 |
Correct |
3 ms |
744 KB |
Output is correct |
3 |
Correct |
3 ms |
744 KB |
Output is correct |
4 |
Correct |
3 ms |
744 KB |
Output is correct |
5 |
Correct |
3 ms |
872 KB |
Output is correct |
6 |
Correct |
3 ms |
872 KB |
Output is correct |
7 |
Correct |
4 ms |
888 KB |
Output is correct |
8 |
Correct |
5 ms |
936 KB |
Output is correct |
9 |
Correct |
5 ms |
936 KB |
Output is correct |
10 |
Correct |
3 ms |
968 KB |
Output is correct |
11 |
Correct |
4 ms |
980 KB |
Output is correct |
12 |
Correct |
4 ms |
980 KB |
Output is correct |
13 |
Correct |
3 ms |
980 KB |
Output is correct |
14 |
Correct |
3 ms |
1112 KB |
Output is correct |
15 |
Correct |
3 ms |
1112 KB |
Output is correct |
16 |
Correct |
3 ms |
1112 KB |
Output is correct |
17 |
Correct |
4 ms |
1112 KB |
Output is correct |
18 |
Runtime error |
5 ms |
1900 KB |
Execution failed because the return code was nonzero |
19 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
2 ms |
376 KB |
Output is correct |
2 |
Correct |
3 ms |
744 KB |
Output is correct |
3 |
Correct |
3 ms |
744 KB |
Output is correct |
4 |
Correct |
3 ms |
744 KB |
Output is correct |
5 |
Correct |
3 ms |
872 KB |
Output is correct |
6 |
Correct |
3 ms |
872 KB |
Output is correct |
7 |
Correct |
4 ms |
888 KB |
Output is correct |
8 |
Correct |
5 ms |
936 KB |
Output is correct |
9 |
Correct |
5 ms |
936 KB |
Output is correct |
10 |
Correct |
3 ms |
968 KB |
Output is correct |
11 |
Correct |
4 ms |
980 KB |
Output is correct |
12 |
Correct |
4 ms |
980 KB |
Output is correct |
13 |
Correct |
3 ms |
980 KB |
Output is correct |
14 |
Correct |
3 ms |
1112 KB |
Output is correct |
15 |
Correct |
3 ms |
1112 KB |
Output is correct |
16 |
Correct |
3 ms |
1112 KB |
Output is correct |
17 |
Correct |
4 ms |
1112 KB |
Output is correct |
18 |
Runtime error |
5 ms |
1900 KB |
Execution failed because the return code was nonzero |
19 |
Halted |
0 ms |
0 KB |
- |