Submission #49350

#TimeUsernameProblemLanguageResultExecution timeMemory
49350MoNsTeR_CuBeGame (IOI14_game)C++17
0 / 100
2 ms412 KiB
#include "game.h" #include <bits/stdc++.h> using namespace std; set<int> Graph[1509]; void initialize(int n) { for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ if(j == i) continue; Graph[i].insert(j); Graph[j].insert(i); } } } int hasEdge(int u, int v) { if(Graph[u].size() == 1 && Graph[v].size() == 1){ return 1; } Graph[u].erase(v); Graph[v].erase(u); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...