Submission #283108

#TimeUsernameProblemLanguageResultExecution timeMemory
283108GREGOIRELCGame (IOI14_game)C++14
0 / 100
1 ms384 KiB
#include "game.h" #include <iostream> using namespace std; const int MAX_NOEUD = 15e2; int nbNoeud; int nbVu[MAX_NOEUD]; bool estConnecte[MAX_NOEUD]; void initialize(int n) { nbNoeud = n; } int hasEdge(int u, int v) { //cout << u << " " << v << endl; if(!estConnecte[u] && nbVu[u] == nbNoeud - 2) { estConnecte[u] = true; estConnecte[v] = true; return 1; } else if(!estConnecte[v] && nbVu[v] == nbNoeud - 2) { estConnecte[u] = true; estConnecte[v] = true; return 1; } nbVu[u]++; nbVu[v]++; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...