# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28595 | ㅁㄴㅇㄹ (#68) | Bulb Game (FXCUP2_bulb) | C++98 | 0 ms | 1136 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 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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |