This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
# 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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |