# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
125033 | baluteshih | Game (IOI14_game) | C++14 | 390 ms | 16504 KiB |
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"
int out[1500];
void initialize(int n)
{
int i,j;
for(i=0;i<n;i++)
out[i]=n-i-1;
}
int hasEdge(int a, int b)
{
int tmp;
if(a>b) tmp=a,a=b,b=tmp;
if(out[a]==1) return 1;
out[a]--;
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |