제출 #553060

#제출 시각아이디문제언어결과실행 시간메모리
553060physics07게임 (IOI14_game)C++17
0 / 100
1 ms300 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; int cnt, a[1501], n; bool b; void initialize(int q) { n=q; } int hasEdge(int u, int v) { cnt+=!a[u]+!a[v]; int ans=0; if(!b && cnt==n) { b=1; if(!a[u] && !a[v]) ans=1; else ans=0; } else if(cnt<n) ans=1; a[u]=a[v]=1; return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...