제출 #719632

#제출 시각아이디문제언어결과실행 시간메모리
719632Toxtaq게임 (IOI14_game)C++17
0 / 100
1 ms308 KiB
#include<bits/stdc++.h> #include "game.h" using namespace std; int n; vector<int>degrees; void initialize(int N) { n = N; degrees.resize(n); } int hasEdge(int u, int v) { degrees[u]++; degrees[v]++; if(degrees[u] >= n - 1 || degrees[v] >= n - 1){ return 1; } return 0; } //int main() //{ // int cnt = 0; // 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) << '\n'; // } // } //}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...