| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 501174 | aymanrs | Game (IOI14_game) | C++14 | 0 ms | 204 KiB |
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 <bits/stdc++.h>
using namespace std;
vector<vector<bool>> a;
vector<vector<int>> c;
void initialize(int n){
a.resize(n);
c.resize(n);
for(auto& i : a) i.resize(n, false);
}
int hasEdge(int u, int v){
auto uc = c[u], vc = c[v];
uc.push_back(u);
vc.push_back(v);
for(int i : uc) for(int j : vc) if(!a[i][j]) return 0;
a[u][v] = a[v][u] = true;
for(int i : uc){
for(int j : vc){
c[j].push_back(i);
c[i].push_back(j);
}
}
return 1;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
