제출 #163488

#제출 시각아이디문제언어결과실행 시간메모리
163488giorgikob게임 (IOI14_game)C++14
0 / 100
2 ms376 KiB
#include "game.h" const int N = 1e5+69; int A[N],k; void initialize(int n) { for(int i=0;i<n;i++) A[i]=n-1; } int hasEdge(int u, int v) { if(A[u]>2 && A[v]>2)return 0; A[u]--,A[v]--; if(A[u]==0 || A[v]==0)return 1; if(A[u]==1){ if(k==2){ return 1; } else { k++; } } if(A[v]==1){ if(k==2){ return 1; } else { k++; } } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...