# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1064454 | sunboi | Game (IOI14_game) | C++17 | 1 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 (val.size() == s - 1){
if (val.count(u) && val.count(v)) return 1;
else return 0;
}else if (val.size() == s - 2){
if (!val.count(u) && !val.count(v)) return 0;
else return 1;
}else return 1;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |