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<bits/stdc++.h>
using namespace std;
#define ll long long
// #ifdef __cplusplus
// extern "C" {
// #endif
// void initialize(int n);
// int hasEdge(int u, int v);
// #ifdef __cplusplus
// }
// #endif
// TODO: global variables can be declared here
ll cnt[1505];
void initialize(int n) {
}
int hasEdge(int u, int v) {
// TODO: implementation
if(u<v) swap(u,v);
return (++cnt[u]==u);
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |