Submission #1043621

#TimeUsernameProblemLanguageResultExecution timeMemory
1043621pravcoderGame (IOI14_game)C++14
15 / 100
1 ms600 KiB
#include "game.h" #include <vector> #include <cmath> #include <iostream> #include <cstdio> #include <algorithm> using namespace std; typedef vector<int> vi; typedef vector<vi> v2i; #define pb push_back #define rep(i, n) for (int i=0; i<n; i++) int i = 0; int r = 0; int tricount = 0; int nontcount = 0; void initialize(int n) { r = n*(n-1) / 2; } int hasEdge(int u, int v) { i++; if (v<u) swap(u,v); if (u == 0) { nontcount++; return nontcount == 3; } else { tricount++; return tricount != 1; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...