| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 915568 | guagua0407 | Meetings (JOI19_meetings) | C++17 | 1668 ms | 1232 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "meetings.h"
#include<bits/stdc++.h>
using namespace std;
void Solve(int n) {
vector<vector<bool>> ok(n,vector<bool>(n));
for(int i=0;i<n;i++){
int cnt=0;
for(int j=i+1;j<n and cnt<18;j++){
if(ok[i][j]) continue;
bool tf=true;
for(int k=0;k<n;k++){
if(k==i or k==j) continue;
int x=Query(i,j,k);
if(x==k){
tf=false;
break;
}
else if(x!=i and x!=j){
ok[i][k]=ok[k][i]=ok[j][k]=ok[k][j]=true;
}
}
if(tf){
cnt++;
Bridge(i,j);
}
}
}
}
| # | 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... | ||||
