This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "game.h"
#include <cstdio>
const int MAXN = 1600;
bool ar[MAXN][MAXN];
int ingrau[MAXN];
void initialize(int n) {
for(int i = 0; i < n; i++){
for(int j = i + 1; j < n; j++){
ar[i][j] = 1;
ingrau[i]++;
ingrau[j]++;
}
}
}
int hasEdge(int u, int v) {
if(ingrau[u] > 1 && ingrau[v] > 1){
ingrau[u]--;
ingrau[v]--;
// printf("%d %d\n", ingrau[u], ingrau[v]);
return 0;
}
return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |