제출 #1108278

#제출 시각아이디문제언어결과실행 시간메모리
1108278Ariadna게임 (IOI14_game)C++14
15 / 100
1 ms616 KiB
#include <bits/stdc++.h> #define fi first #define se second using namespace std; int cnt = 0, other = 0, N; pair<int, int> edge1; void initialize(int n) { N = n; } int hasEdge(int u, int v) { ++cnt; if (cnt == 1) { edge1 = {u, v}; return 1; } if (u != edge1.fi && u != edge1.se && v != edge1.fi && v != edge1.se) return 1; ++other; if (other == 4) return 1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...