Submission #103501

#TimeUsernameProblemLanguageResultExecution timeMemory
103501SecretAgent007Game (IOI14_game)C++17
0 / 100
3 ms384 KiB
# include "game.h" # include <bits/stdc++.h> using namespace std; vector< int > degrees; void initialize(int n) { degrees.resize(n,n-1); } int hasEdge(int u, int v) { if(degrees[u] == 1 || degrees[v] == 1){ degrees[u]--; degrees[v]--; return 1; }else{ degrees[u]--; degrees[v]--; return 0; } } /* signed main(){ int n; cin >> n; initialize(n); for(int i = 0; i < n; i++){ for(int j = i+1; j < n; j++){ cout << i << ' ' << j << ' ' << hasEdge(i,j) << endl; } } }*/
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...