# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28467 | 욱제한테백구주나 (#68) | Bulb Game (FXCUP2_bulb) | C++11 | 0 ms | 1132 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |