#include "soccer.h"
int biggest_stadium(int N, std::vector<std::vector<int>> F)
{
bool f = true;
int c = 0;
for (int i = 0; i < N; i ++) {
for (int j = 0; j < N; j ++) {
if (F[i][j] == 1) {
if ((0 < i && i < N - 1) || (0 < j && j < N - 1)) {
f = false;
}
} else {
c ++;
}
}
}
if (f) {
return c;
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1 ms |
336 KB |
partial |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
336 KB |
ok |
2 |
Correct |
1 ms |
336 KB |
ok |
3 |
Correct |
1 ms |
336 KB |
ok |
4 |
Correct |
1 ms |
336 KB |
ok |
5 |
Correct |
1 ms |
336 KB |
ok |
6 |
Partially correct |
0 ms |
336 KB |
partial |
7 |
Partially correct |
2 ms |
336 KB |
partial |
8 |
Partially correct |
13 ms |
2896 KB |
partial |
9 |
Partially correct |
206 ms |
39696 KB |
partial |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
336 KB |
ok |
2 |
Correct |
1 ms |
336 KB |
ok |
3 |
Partially correct |
1 ms |
336 KB |
partial |
4 |
Partially correct |
1 ms |
336 KB |
partial |
5 |
Partially correct |
1 ms |
336 KB |
partial |
6 |
Partially correct |
0 ms |
336 KB |
partial |
7 |
Incorrect |
1 ms |
336 KB |
wrong |
8 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1 ms |
336 KB |
partial |
2 |
Correct |
1 ms |
336 KB |
ok |
3 |
Correct |
1 ms |
336 KB |
ok |
4 |
Partially correct |
1 ms |
336 KB |
partial |
5 |
Partially correct |
1 ms |
336 KB |
partial |
6 |
Partially correct |
1 ms |
336 KB |
partial |
7 |
Partially correct |
0 ms |
336 KB |
partial |
8 |
Incorrect |
1 ms |
336 KB |
wrong |
9 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1 ms |
336 KB |
partial |
2 |
Correct |
1 ms |
336 KB |
ok |
3 |
Correct |
1 ms |
336 KB |
ok |
4 |
Correct |
1 ms |
336 KB |
ok |
5 |
Correct |
1 ms |
336 KB |
ok |
6 |
Partially correct |
1 ms |
336 KB |
partial |
7 |
Partially correct |
1 ms |
336 KB |
partial |
8 |
Partially correct |
1 ms |
336 KB |
partial |
9 |
Partially correct |
0 ms |
336 KB |
partial |
10 |
Incorrect |
1 ms |
336 KB |
wrong |
11 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1 ms |
336 KB |
partial |
2 |
Correct |
1 ms |
336 KB |
ok |
3 |
Correct |
1 ms |
336 KB |
ok |
4 |
Correct |
1 ms |
336 KB |
ok |
5 |
Correct |
1 ms |
336 KB |
ok |
6 |
Partially correct |
1 ms |
336 KB |
partial |
7 |
Partially correct |
1 ms |
336 KB |
partial |
8 |
Partially correct |
1 ms |
336 KB |
partial |
9 |
Partially correct |
0 ms |
336 KB |
partial |
10 |
Incorrect |
1 ms |
336 KB |
wrong |
11 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Partially correct |
1 ms |
336 KB |
partial |
2 |
Correct |
1 ms |
336 KB |
ok |
3 |
Correct |
1 ms |
336 KB |
ok |
4 |
Correct |
1 ms |
336 KB |
ok |
5 |
Correct |
1 ms |
336 KB |
ok |
6 |
Correct |
1 ms |
336 KB |
ok |
7 |
Partially correct |
0 ms |
336 KB |
partial |
8 |
Partially correct |
2 ms |
336 KB |
partial |
9 |
Partially correct |
13 ms |
2896 KB |
partial |
10 |
Partially correct |
206 ms |
39696 KB |
partial |
11 |
Partially correct |
1 ms |
336 KB |
partial |
12 |
Partially correct |
1 ms |
336 KB |
partial |
13 |
Partially correct |
1 ms |
336 KB |
partial |
14 |
Partially correct |
0 ms |
336 KB |
partial |
15 |
Incorrect |
1 ms |
336 KB |
wrong |
16 |
Halted |
0 ms |
0 KB |
- |