#include "treasure.h"
#include <bits/stdc++.h>
using namespace std;
int ans[105][105];
void findTreasure (int N) {
//int cnt = countTreasure(1, 1, N, N);
//if(cnt > 0) Report (1, 1);
for (int i=1; i<=N; i++){
for (int j=1; j<=N; j++){
ans[i][j] = countTreasure(i,j, i,j);
}
}
for (int i=1; i<=N; i++){
for (int j=1; j<=N; j++){
if (ans[i][j]) Report(i,j);
}
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1 ms |
364 KB |
Output is partially correct - N = 5, K = 625, score = 1 |
2 |
Partially correct |
0 ms |
364 KB |
Output is partially correct - N = 10, K = 10000, score = 1 |
3 |
Partially correct |
0 ms |
364 KB |
Output is partially correct - N = 15, K = 50625, score = 1 |
4 |
Partially correct |
0 ms |
364 KB |
Output is partially correct - N = 16, K = 65536, score = 1 |
5 |
Partially correct |
1 ms |
364 KB |
Output is partially correct - N = 55, K = 9150625, score = 1 |
6 |
Partially correct |
1 ms |
364 KB |
Output is partially correct - N = 66, K = 18974736, score = 1 |
7 |
Partially correct |
1 ms |
364 KB |
Output is partially correct - N = 77, K = 35153041, score = 1 |
8 |
Partially correct |
1 ms |
364 KB |
Output is partially correct - N = 88, K = 59969536, score = 1 |
9 |
Partially correct |
1 ms |
512 KB |
Output is partially correct - N = 99, K = 96059601, score = 1 |
10 |
Partially correct |
1 ms |
364 KB |
Output is partially correct - N = 100, K = 100000000, score = 1 |