제출 #103501

#제출 시각아이디문제언어결과실행 시간메모리
103501SecretAgent007게임 (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...