Submission #729034

#TimeUsernameProblemLanguageResultExecution timeMemory
729034sofija6Game (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...