# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1064457 |
2024-08-18T13:02:12 Z |
sunboi |
Game (IOI14_game) |
C++17 |
|
0 ms |
348 KB |
#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 return 1;
}else return 1;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |