Submission #125033

#TimeUsernameProblemLanguageResultExecution timeMemory
125033baluteshihGame (IOI14_game)C++14
100 / 100
390 ms16504 KiB
#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)

game.cpp: In function 'void initialize(int)':
game.cpp:7:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...