답안 #1043320

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1043320 2024-08-04T08:15:09 Z thelegendary08 축구 경기장 (IOI23_soccer) C++17
1.5 / 100
165 ms 39192 KB
#include "soccer.h"
#include <bits/stdc++.h>
#include <ext/pb_ds/detail/standard_policies.hpp>
#define vi vector<int>
#define pb push_back
#define f0r(i,n) for(int i=0;i<n;i++)
using namespace std;
using namespace __gnu_pbds;

int biggest_stadium(int N, std::vector<std::vector<int>> v)
{
	int cnt = 0;
	f0r(i, N){
		f0r(j, N)if(v[i][j] == 0)cnt++;
	}
	f0r(i, N){
		bool broken = 0;
		f0r(j, N){
			if(v[i][j] == 0 && broken){
				return cnt-1;
			}
			if(j != 0 && v[i][j] == 1 && v[i][j-1] == 0)broken = 1;
		}
	}
	f0r(i, N){
		bool broken = 0;
		f0r(j, N){
			if(v[j][i] == 0 && broken){
				return cnt-1;
			}
			if(j != 0 && v[j][i] == 1 && v[j-1][i] == 0)broken = 1;
		}
	}
    return cnt;
}
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 344 KB partial
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB ok
2 Correct 0 ms 348 KB ok
3 Correct 0 ms 436 KB ok
4 Correct 0 ms 600 KB ok
5 Correct 0 ms 348 KB ok
6 Partially correct 0 ms 348 KB partial
7 Partially correct 1 ms 348 KB partial
8 Partially correct 11 ms 2704 KB partial
9 Partially correct 165 ms 39192 KB partial
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB ok
2 Correct 0 ms 348 KB ok
3 Correct 0 ms 348 KB ok
4 Correct 0 ms 348 KB ok
5 Incorrect 0 ms 348 KB wrong
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 344 KB partial
2 Correct 0 ms 344 KB ok
3 Correct 0 ms 348 KB ok
4 Correct 0 ms 348 KB ok
5 Correct 0 ms 348 KB ok
6 Incorrect 0 ms 348 KB wrong
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 344 KB partial
2 Correct 0 ms 344 KB ok
3 Correct 0 ms 348 KB ok
4 Correct 0 ms 436 KB ok
5 Correct 0 ms 600 KB ok
6 Correct 0 ms 348 KB ok
7 Correct 0 ms 348 KB ok
8 Incorrect 0 ms 348 KB wrong
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 344 KB partial
2 Correct 0 ms 344 KB ok
3 Correct 0 ms 348 KB ok
4 Correct 0 ms 436 KB ok
5 Correct 0 ms 600 KB ok
6 Correct 0 ms 348 KB ok
7 Correct 0 ms 348 KB ok
8 Incorrect 0 ms 348 KB wrong
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Partially correct 0 ms 344 KB partial
2 Correct 0 ms 344 KB ok
3 Correct 0 ms 348 KB ok
4 Correct 0 ms 436 KB ok
5 Correct 0 ms 600 KB ok
6 Correct 0 ms 348 KB ok
7 Partially correct 0 ms 348 KB partial
8 Partially correct 1 ms 348 KB partial
9 Partially correct 11 ms 2704 KB partial
10 Partially correct 165 ms 39192 KB partial
11 Correct 0 ms 348 KB ok
12 Correct 0 ms 348 KB ok
13 Incorrect 0 ms 348 KB wrong
14 Halted 0 ms 0 KB -