# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28398 | 탕탕탕! 핑거팁 니 맘을 겨눌게~ (#68) | Bulb Game (FXCUP2_bulb) | C11 | 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 num;
int arr[1001];
void Init(int N) {
num = N;
}
int MakeTurn(int M) {
arr[M] = 1;
int result;
result = (M + 2) % (num + 1);
if (result == 0)
result++;
while (arr[result] == 1) {
if (arr[result] == 1)
result++;
if (result > num)
result = 1;
}
arr[result] = 1;
return result;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |