#include "game.h"
#include <bits/stdc++.h>
#define N 2000
using namespace std;
int resta[N];
void initialize(int n)
{
for(int i = 1; i <= n; i++) resta[i] = n - 1;
}
int hasEdge(int u, int v)
{
if(resta[u] == 1 or resta[v] == 1) return 1;
resta[u] --, resta[v] --;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
248 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
4 ms |
488 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
4 ms |
544 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |