| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 362754 | mosiashvililuka | 게임 (IOI14_game) | C++14 | 1082 ms | 3564 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
//#include "game.h"
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,e,i,j,ii,jj,zx,xc,msh[1509],zm[1509],k[1509],cnt,bo[1509];
int B[1509][1509];
void initialize(int n) {
a=n;
}
void dfs(int q){
bo[q]=cnt;e++;
for(int h=0; h<a; h++){
if(h!=q&&bo[h]!=cnt&&B[q][h]==0) dfs(h);
}
}
int hasEdge(int qqa, int qqb) {
c=qqa;d=qqb;
cnt++;
B[c][d]=1;
B[d][c]=1;
e=0;
dfs(1);
if(e==a){
return 0;
}else{
B[c][d]=0;
B[d][c]=0;
return 1;
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
