| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 300490 | NicolaAbusaad2014 | 게임 (IOI14_game) | C++14 | 1 ms | 384 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
long x,z,n;
bool ok=false,ok2=false,ok3=false;
void initialize(int n) {
}
int hasEdge(int u, int v) {
if(!ok){
ok=true;
x=u;
z=v;
return 1;
}
else{
if(!ok2){
if(u==x||u==z){
n=v;
ok2=true;
return 0;
}
else if(v==x||v==z){
n=u;
ok2=true;
return 0;
}
return 0;
}
else{
if(!ok3){
if((u==n||v==n)&&(u==x||u==z||v==x||v==z)){
ok3=true;
return 1;
}
return 0;
}
else{
return 0;
}
}
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
