This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
int arr[1501];
void initialize(int n);
int hasEdge(int u, int v);
void initialize(int n)
{}
int hasEdge(int u, int v)
{
int r = u > v ? u : v;
return ++arr[r] == r;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |