Submission #240664

#TimeUsernameProblemLanguageResultExecution timeMemory
240664Coroian_DavidGame (IOI14_game)C++11
0 / 100
5 ms384 KiB
#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)

game.cpp: In function 'int hasEdge(int, int)':
game.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...