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 <iostream>
#include <numeric>
#include <vector>
using namespace std;
vector<int>arr;
void initialize(int N){
arr.resize(N);
iota(arr.rbegin()+1, arr.rend(), 0);
}
int hasEdge(int u, int v){
if(arr[min(u, v)] == 0){
return 1;
}
else{
arr[min(u, v)]--;
return 0;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |