Submission #28595

#TimeUsernameProblemLanguageResultExecution timeMemory
28595ㅁㄴㅇㄹ (#68)Bulb Game (FXCUP2_bulb)C++98
1 / 1
0 ms1136 KiB
#include "bulb.h" int A[2010], i, n; void Init(int N) { n=N; for(i=1; i<=n; i++) A[i]=0; } int MakeTurn(int M) { A[M]=1; for(i=1; i<=n; i++) if(A[i]==0) break; A[i]=1; return i; }
#Verdict Execution timeMemoryGrader output
Fetching results...