제출 #1059312

#제출 시각아이디문제언어결과실행 시간메모리
1059312vjudge1게임 (IOI14_game)C++17
15 / 100
1 ms600 KiB
#include "game.h" #include<bits/stdc++.h> #define ll long long #define pb push_back using namespace std; int N, R; vector<int> cnt(1505,0); void initialize(int n) { N = n; R = 0; } int hasEdge(int u, int v) { cnt[u]++; cnt[v]++; R++; bool flag=1; for(int i=0; i < N; i++){ if(cnt[i] != N-2){ flag = 0; } } int ans=0; if((cnt[u] == N-1 || cnt[v] == N-1) || flag){ ans = 1; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...