Submission #888571

#TimeUsernameProblemLanguageResultExecution timeMemory
888571GabrielGame (IOI14_game)C++17
15 / 100
1 ms600 KiB
#include "game.h" #include "bits/stdc++.h" using namespace std; int N; vector<int> Informaci_n_dada; void initialize(int n) { N = n; Informaci_n_dada.assign(n, 0); } int No_dar = 0; int hasEdge(int u, int v) { Informaci_n_dada[u]++; Informaci_n_dada[v]++; if(No_dar == N - 1) return 1; if(Informaci_n_dada[u] == N - 1 or Informaci_n_dada[v] == N - 1) return 1; else { No_dar++; return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...