Submission #1006498

#TimeUsernameProblemLanguageResultExecution timeMemory
1006498makanhuliaGame (IOI14_game)C++17
0 / 100
1 ms2396 KiB
#include<bits/stdc++.h> using namespace std; int n, deg[1505], vis[1505][1505]; void initialize(int n) { for(int i=1; i<=n; i++) { deg[i]=n-1; } } bool hasEdge(int u, int v) { if(u>v)swap(u, v); if(vis[u][v]==0) { vis[u][v]=1; deg[u]--;deg[v]--; } if(min(deg[u], deg[v])==0) { return true; } else { return false; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...