제출 #1081063

#제출 시각아이디문제언어결과실행 시간메모리
1081063DarkMatter게임 (IOI14_game)C++14
15 / 100
1 ms448 KiB
#define _CRT_SECURE_NO_WARNINGS #include "game.h" #include<bits/stdc++.h> using namespace std; int r, cur; vector<int>cnt; void initialize(int n) { cnt.resize(n, n - 1); r = n * (n - 1) / 2; cur = n - 1; } int hasEdge(int u, int v) { cnt[u]--, cnt[v]--, r--; if (!cnt[u] || !cnt[v] || r < cur) { cur--; return 1; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...