| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1064474 | sunboi | Game (IOI14_game) | C++14 | 0 ms | 348 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;
#include "game.h"
set<int> val;
int s = 0;
void initialize(int n){
s = n;
}
int hasEdge(int u, int v){
if ((long long)(val.size()) == s - 1){
if (val.count(u) && val.count(v)) return 1;
else return 0;
}else if ((long long)(val.size()) == s - 2){
if (!val.count(u) && !val.count(v)) return 0;
else {
val.insert(u);
val.insert(v);
return 1;
}
}else {
val.insert(u);
val.insert(v);
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... | ||||
