제출 #319393

#제출 시각아이디문제언어결과실행 시간메모리
319393Nayna게임 (IOI14_game)C++14
100 / 100
386 ms16484 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; const int mxn = 2000; int cnt[mxn]; int node; void initialize(int n) { node = n; for(int i = 0; i <= n; i++) cnt[i] = 0; } int hasEdge(int u, int v) { if(u>v) swap(u, v); u++, v++; cnt[u]++; //cout << u << ' ' << cnt[u] << '\n'; if(cnt[u]==(node-u)) return 1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...