Submission #103486

#TimeUsernameProblemLanguageResultExecution timeMemory
103486SecretAgent007Game (IOI14_game)C++17
0 / 100
2 ms256 KiB
# include "game.h" # include <bits/stdc++.h> using namespace std; vector< vector< bool > > ve; vector< vector< bool > > ans; void initialize(int n) { ve.resize(n,vector<bool>(n)); ans.resize(n,vector<bool>(n)); } bool last = 1; int hasEdge(int u, int v) { if(ve[u][v]){ return ans[u][v]; }else{ ve[u][v] = true; ve[v][u] = true; last = !last; ans[u][v] = last; ans[v][u] = last; return last; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...