# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
229509 |
2020-05-04T21:09:43 Z |
tushar_2658 |
Game (IOI14_game) |
C++14 |
|
5 ms |
384 KB |
#include "game.h"
#include "bits/stdc++.h"
using namespace std;
const int maxn = 1505;
int deg[maxn];
int N;
void initialize(int n) {
N = n;
}
int hasEdge(int u, int v) {
if(deg[u] + 1 == N - 1 or deg[v] + 1 == N - 1){
return 0;
}else {
++deg[u], ++deg[v];
return 1;
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |