제출 #125033

#제출 시각아이디문제언어결과실행 시간메모리
125033baluteshih게임 (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; }

컴파일 시 표준 에러 (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...