제출 #300509

#제출 시각아이디문제언어결과실행 시간메모리
300509NicolaAbusaad2014게임 (IOI14_game)C++14
0 / 100
1 ms384 KiB
#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; } n=1e5; return 1; } else{ if(!ok3){ if(u==n||v==n){ ok3=true; return 1; } return 0; } else{ return 0; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...