#include "game.h"
#include <bits/stdc++.h>
using namespace std;
int k;
vector<int> arr;
void initialize(int n) {
k = n;
for(int i = 0; i < n; i++) arr.push_back(n - 1);
}
int hasEdge(int u, int v) {
if(!(arr[u]--) or !(arr[v]--))
return 1;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
356 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
348 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |