제출 #1175331

#제출 시각아이디문제언어결과실행 시간메모리
1175331ThylOne축구 경기장 (IOI23_soccer)C++20
1.50 / 100
178 ms31756 KiB
#include "soccer.h" int biggest_stadium(int N, std::vector<std::vector<int>> F) { int empty = 0; int cnt= 0; for(int y = 0 ; y < N ; y++){ int flag = 0; for(int x = 0 ; x < N ; x++){ if(F[y][x]==0)empty++; if(flag==0 && F[y][x])continue; if(flag<=1 && F[y][x]==0){ flag=1; cnt++; } if(flag==1 && F[y][x]){ flag=2; } } } return (cnt==empty?cnt:0); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...