# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
240664 | Coroian_David | Game (IOI14_game) | C++11 | 5 ms | 384 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 <iostream>
#include "game.h"
#define MAX_N 1500
using namespace std;
int ap[MAX_N + 1];
void initialize(int n)
{
for(int i = 1; i <= n; i ++)
ap[i] = n - 1;
}
int hasEdge(int u, int v)
{
u ++;
v ++;
ap[u] --;
ap[v] --;
cout << ((ap[u] == 0 || ap[v] == 0) ? "yes\n" : "no\n");
}
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... |