Submission #1108278

#TimeUsernameProblemLanguageResultExecution timeMemory
1108278AriadnaGame (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...