| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 1079517 | Huseyn123 | 축구 경기장 (IOI23_soccer) | C++17 | 663 ms | 499072 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "soccer.h"
#include <bits/stdc++.h>
using namespace std;
int dp[501][501][501];
int r[501][501][501];
int biggest_stadium(int N, std::vector<std::vector<int>> F)
{
    int n=N;
    int cnt,x,y; 
    cnt=x=y=0;
    for(int i=0;i<N;i++){
        for(int j=0;j<N;j++){
            if(F[i][j]){
                x=i; 
                y=j; 
                cnt++; 
            }
        }
    }
    if(cnt==1){
        return N*N-min(x+1,N-x)*min(y+1,N-y);
    }
    int res=0; 
    for(int i=0;i<N;i++){
        int l=0; 
        for(int j=0;j<N;j++){
            if(F[i][j]){
                l=j+1;
            }
            else{
                r[i][i][l]=j;
                dp[i][i][l]=j-l+1;
            }
        }
    }
    for(int i=1;i<=N;i++){
        for(int j=0;j<N;j++){
            int z=j+i-1;
            if(j){
                for(int k=0;k<N;k++){
                    if(dp[j][z][k]){
                        int l=k;
                        for(int ind=k;ind<=r[j][z][k];ind++){
                            if(F[j-1][ind]){
                                l=ind+1;
                            }
                            else{
                                dp[j-1][z][l]=max(dp[j-1][z][l],ind-l+1+dp[j][z][k]);
                                r[j-1][z][l]=ind; 
                            }
                        }
                    }
                }
            }
            if(z+1<N){
                for(int k=0;k<N;k++){
                    if(dp[j][z][k]){
                        int l=k;
                        for(int ind=k;ind<=r[j][z][k];ind++){
                            if(F[z+1][ind]){
                                l=ind+1;
                            }
                            else{
                                dp[j][z+1][l]=max(dp[j][z+1][l],ind-l+1+dp[j][z][k]);
                                r[j][z+1][l]=ind; 
                            }
                        }
                    }
                }
            }
        }
    }
    for(int i=0;i<N;i++){
        for(int j=i;j<N;j++){
            for(int z=0;z<N;z++){
                res=max(res,dp[i][j][z]); 
            }
        }
    }
    return res; 
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
