QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#527660#7120. Soccergreen_gold_dog#0 0ms3900kbC++20698b2024-08-22 18:04:262024-08-22 18:04:27

Judging History

你现在查看的是最新测评结果

  • [2024-08-22 18:04:27]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:3900kb
  • [2024-08-22 18:04:26]
  • 提交

answer

#include "soccer.h"
#include<bits/stdc++.h>

using namespace std;

typedef int ll;

ll biggest_stadium(ll n, vector<vector<ll>> f) {
	ll col = 0;
	for (ll i = 0; i < n; i++) {
		bool iso = false;
		bool isop = false;
		for (ll j = 0; j < n; j++) {
			if (f[i][j] == 0) {
				if (isop) {
					return n * n;
				}
				iso = true;
			} else {
				col++;
				if (iso) {
					isop = true;
					iso = false;
				}
			}
		}
	}
	for (ll i = 0; i < n; i++) {
		bool iso = false;
		bool isop = false;
		for (ll j = 0; j < n; j++) {
			if (f[j][i] == 0) {
				if (isop) {
					return n * n;
				}
				iso = true;
			} else {
				if (iso) {
					isop = true;
					iso = false;
				}
			}
		}
	}
	return col;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3876kb

input:

R0R7sb2atQWJ6SAWOjw4ZG7Gwgo5zl9L
1
0

output:

xlqtkQVzqzbOJxjzxlqsyVrlM2kqlbK0
OK
0

result:

wrong answer wrong

Subtask #2:

score: 0
Wrong Answer

Test #10:

score: 2
Acceptable Answer
time: 0ms
memory: 3820kb

input:

R0R7sb2atQWJ6SAWOjw4ZG7Gwgo5zl9L
3
0 0 0
0 1 0
0 1 1

output:

xlqtkQVzqzbOJxjzxlqsyVrlM2kqlbK0
OK
9

result:

points 0.250 partial

Test #11:

score: 2
Acceptable Answer
time: 0ms
memory: 3816kb

input:

R0R7sb2atQWJ6SAWOjw4ZG7Gwgo5zl9L
3
0 0 0
0 1 1
0 0 1

output:

xlqtkQVzqzbOJxjzxlqsyVrlM2kqlbK0
OK
9

result:

points 0.250 partial

Test #12:

score: 2
Acceptable Answer
time: 0ms
memory: 3788kb

input:

R0R7sb2atQWJ6SAWOjw4ZG7Gwgo5zl9L
3
0 0 1
0 0 0
1 1 0

output:

xlqtkQVzqzbOJxjzxlqsyVrlM2kqlbK0
OK
3

result:

points 0.250 partial

Test #13:

score: 8
Accepted
time: 0ms
memory: 3880kb

input:

R0R7sb2atQWJ6SAWOjw4ZG7Gwgo5zl9L
3
1 0 0
1 0 1
0 0 1

output:

xlqtkQVzqzbOJxjzxlqsyVrlM2kqlbK0
OK
4

result:

ok ok

Test #14:

score: 2
Acceptable Answer
time: 0ms
memory: 3900kb

input:

R0R7sb2atQWJ6SAWOjw4ZG7Gwgo5zl9L
3
0 0 1
0 0 0
1 0 0

output:

xlqtkQVzqzbOJxjzxlqsyVrlM2kqlbK0
OK
2

result:

points 0.250 partial

Test #15:

score: 0
Wrong Answer
time: 0ms
memory: 3812kb

input:

R0R7sb2atQWJ6SAWOjw4ZG7Gwgo5zl9L
3
0 0 1
0 0 1
0 0 0

output:

xlqtkQVzqzbOJxjzxlqsyVrlM2kqlbK0
OK
2

result:

wrong answer wrong

Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Skipped

Dependency #3:

0%

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Skipped

Dependency #1:

0%