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;
int n, deg[1505], vis[1505][1505];
void initialize(int n)
{
for(int i=1; i<=n; i++)
{
deg[i]=n-1;
}
}
bool hasEdge(int u, int v)
{
if(u>v)swap(u, v);
if(vis[u][v]==0)
{
vis[u][v]=1;
deg[u]--;deg[v]--;
}
if(min(deg[u], deg[v])==0)
{
return true;
}
else
{
return false;
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |