Submission #28467

#TimeUsernameProblemLanguageResultExecution timeMemory
28467욱제한테백구주나 (#68)Bulb Game (FXCUP2_bulb)C++11
1 / 1
0 ms1132 KiB
#include "bulb.h" int check[1003]; int n; void Init(int N) { for(int i = 1; i <= N; i++) check[i] = 0; n = N; } int MakeTurn(int M) { check[M] = 1; for(int i = 1; i <= n; i++){ if(!check[i]) { check[i] = 1; return i; } } return 1; }
#Verdict Execution timeMemoryGrader output
Fetching results...