제출 #729034

#제출 시각아이디문제언어결과실행 시간메모리
729034sofija6게임 (IOI14_game)C++14
0 / 100
1 ms304 KiB
#include <bits/stdc++.h> #define MAXN 1510 #define inf 1e9 using namespace std; int cnt[MAXN]; void initialize(int n) { for (int i=0;i<n;i++) cnt[i]=n-1; } int hasEdge(int u, int v) { if (cnt[u]==1 || cnt[v]==1) { cnt[u]=inf; cnt[v]=inf; return 1; } cnt[u]--; cnt[v]--; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...