Submission #1065379

# Submission time Handle Problem Language Result Execution time Memory
1065379 2024-08-19T06:48:45 Z ReLice Soccer Stadium (IOI23_soccer) C++17
6 / 100
195 ms 31772 KB
#include "soccer.h"
#include <bits/stdc++.h>
#define ll int
#define pb push_back
#define ins insert
#define fr first
#define sc second
#define vll vector<ll>
using namespace std;

const ll N = 7;
const ll M = N * N + 7;
const ll inf = 1e9 + 7;
ll dp[M][M];

int biggest_stadium(int n, vector<vector<int>> f){
	ll i,j;
	
	for(i=0;i<n;i++){
		for(j=0;j<n;j++){
			if(f[i][j] == 1){
				ll mn = inf;
				for(auto k : {i + 1, n - i}){
					for(auto l : {j + 1, n - j}){
						mn = min(mn, k * l);
					}
				}
				return n * n - mn;
			}
		}
	}
	
	return n * n;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 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 344 KB ok
4 Correct 0 ms 348 KB ok
5 Correct 0 ms 348 KB ok
6 Correct 0 ms 348 KB ok
7 Correct 2 ms 344 KB ok
8 Correct 12 ms 2396 KB ok
9 Correct 195 ms 31772 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 348 KB ok
4 Correct 0 ms 348 KB ok
5 Partially correct 1 ms 348 KB partial
6 Partially correct 0 ms 348 KB partial
7 Partially correct 0 ms 348 KB partial
8 Incorrect 0 ms 348 KB wrong
9 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB wrong
2 Halted 0 ms 0 KB -