Submission #937262

# Submission time Handle Problem Language Result Execution time Memory
937262 2024-03-03T17:21:29 Z Dan4Life Soccer Stadium (IOI23_soccer) C++17
6 / 100
229 ms 39576 KB
#include "soccer.h"
#include <bits/stdc++.h>
using namespace std;

#define pf push_front
#define pb push_back
#define ll long long
#define vi vector<int>
#define sz(a) (int)a.size()
#define all(a) begin(a),end(a)

int biggest_stadium(int N, vector<vi> F)
{
	int tot = 0;
	for(auto u : F)
		for(auto w : u)
			tot+=w;
	if(!tot) return N*N;
	for(int i = 0; i < N; i++){
		for(int j = 0; j < N; j++){
			if(F[i][j]){
				return N*N-min({(i+1)*(j+1),(i+1)*(N-j),(N-i)*(j+1),(N-i)*(N-j)});
			}
		}
	}
	return 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB ok
2 Correct 0 ms 348 KB ok
3 Correct 0 ms 348 KB ok
4 Correct 0 ms 344 KB ok
5 Correct 1 ms 348 KB ok
6 Correct 0 ms 348 KB ok
7 Correct 1 ms 344 KB ok
8 Correct 15 ms 2908 KB ok
9 Correct 229 ms 39576 KB ok
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB ok
2 Correct 0 ms 348 KB ok
3 Correct 0 ms 440 KB ok
4 Correct 0 ms 348 KB ok
5 Partially correct 0 ms 348 KB partial
6 Partially correct 0 ms 348 KB partial
7 Partially correct 0 ms 348 KB partial
8 Incorrect 1 ms 348 KB wrong
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB wrong
2 Halted 0 ms 0 KB -