Submission #57880

#TimeUsernameProblemLanguageResultExecution timeMemory
57880zetapiGame (IOI14_game)C++14
100 / 100
570 ms151596 KiB
#include "game.h" #include "bits/stdc++.h" using namespace std; int N,cnt[2000][2000]; void initialize(int n) { } int c[1500]; int hasEdge(int u, int v) { return ++c[u > v ? u : v] == (u > v ? u : v); } /*int hasEdge(int u, int v) { if(u>v) swap(u,v); cnt[v][u]++; if(cnt[v][u]==v) return 1; return 0; }*/
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...