제출 #995788

#제출 시각아이디문제언어결과실행 시간메모리
995788aaaaaarroz축구 경기장 (IOI23_soccer)C++17
1.50 / 100
186 ms31776 KiB
#include <bits/stdc++.h> using namespace std; int mejor_mitad(pair<int,int>arbol, int N){ } int biggest_stadium(int N, vector<vector<int>> F){ int empty_cells=0; bool si_hay_arbol=false; pair<int,int>arbol; for(int i=0;i<N;i++){ for(int j=0;j<N;j++){ if(F[i][j]==0){ empty_cells++; } else{ arbol={i,j}; si_hay_arbol=true; } } } if(!si_hay_arbol){ return N*N; } else{ int a=((arbol.first+1)*(arbol.second+1))+min((arbol.first+1),(arbol.second+1)); int b=(((arbol.first+1)*(N-arbol.second))+min((arbol.first+1),(N-arbol.second))); int c=(((N-arbol.first)*(arbol.second+1))+min((N-arbol.first),(arbol.second+1))); int d=(((N-arbol.first)*(N-arbol.second))+min((N-arbol.first),(N-arbol.second))); int e=((arbol.first+1)*(arbol.second+1)); int f=(((arbol.first+1)*(N-arbol.second))); int g=(((N-arbol.first)*(arbol.second+1))); int h=(((N-arbol.first)*(N-arbol.second))); int max_rectangle=min(min(a,b),min(c,d)); max_rectangle=max(max_rectangle,(N*N)-min(min(e,f),min(g,h))); return max_rectangle; } }

컴파일 시 표준 에러 (stderr) 메시지

soccer.cpp: In function 'int mejor_mitad(std::pair<int, int>, int)':
soccer.cpp:5:1: warning: no return statement in function returning non-void [-Wreturn-type]
    5 | }
      | ^
#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...