# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
861185 | GordonRemzi007 | Soccer Stadium (IOI23_soccer) | C++17 | 4518 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <vector>
using namespace std;
int biggest_stadium(int n, vector<vector<int>> a) {
int res = 1, temp, down, up;
bool ok, can1, can2;
vector<pair<int,int>> free;
for(int i = 0; i < n; i++) {
for(int j = 0; j < n; j++) {
if(!a[i][j]) free.push_back({i, j});
}
}
for(int i = 2; i < (1<<free.size()); i++) {
temp = i;
vector<int> tempfree;
for(int i = 0; i < free.size() && temp > 0; i++, temp/=2) {
if(temp%2==0) tempfree.push_back(i);
}
ok = true;
for(int i = 0; i < tempfree.size(); i++) {
for(int j = 0; j < tempfree.size(); j++) {
if(free[tempfree[i]].first < free[tempfree[j]].first) {
down = tempfree[i];
up = tempfree[j];
} else {
down = tempfree[j];
up = tempfree[i];
}
컴파일 시 표준 에러 (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... |