#include <bits/stdc++.h>
using namespace std;
int a[1501];
int n;
void initialize(int n)
{
::n = n;
for(int i = 0; i < n; i++){
a[i] = n;
}
}
int hasEdge(int u, int v)
{
if(a[u] == 1 || a[v] == 1){
a[u] = 0;
a[v] = 0;
return 1;
}
a[u]--;
a[v]--;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
376 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
3 ms |
376 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
608 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |