제출 #518718

#제출 시각아이디문제언어결과실행 시간메모리
518718timreizin게임 (IOI14_game)C++17
0 / 100
1 ms204 KiB
#include "game.h" #include <vector> using namespace std; vector<int> counter; int n, times; pair<int, int> start; bool wasPair = false; void initialize(int _n) { counter.resize(n + 1); n = _n; } int hasEdge(int u, int v) { ++times; if (u > v) swap(u, v); if (times == 1) { start = {u, v}; return 1; } if (times == 5) { if (wasPair) return 0; return 1; } if (u != start.first && u != start.second && v != start.first && v != start.second) wasPair = true; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...