#include "lokahia.h"
int FindBase(int N){
int prev = 0, cur = N - 1, cnt = 0;
while (true) {
int temp = CollectRelics(prev, cur);
if (temp == cur) return cur;
if (temp == -1) cur = cnt++, prev = N - 1;
prev = cur;
cur = temp;
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
620 KB |
Wrong |
2 |
Correct |
1 ms |
620 KB |
Correct : C = 2 |
3 |
Incorrect |
1 ms |
620 KB |
Wrong |
4 |
Incorrect |
1 ms |
620 KB |
Wrong |
5 |
Correct |
1 ms |
492 KB |
Correct : C = 2 |
6 |
Incorrect |
1 ms |
492 KB |
Wrong |
7 |
Incorrect |
1 ms |
620 KB |
Wrong |
8 |
Correct |
1 ms |
492 KB |
Correct : C = 2 |
9 |
Correct |
1 ms |
620 KB |
Correct : C = 2 |
10 |
Incorrect |
1 ms |
620 KB |
Wrong |
11 |
Correct |
1 ms |
492 KB |
Correct : C = 2 |
12 |
Incorrect |
1 ms |
492 KB |
Wrong |
13 |
Correct |
1 ms |
492 KB |
Correct : C = 2 |
14 |
Correct |
1 ms |
620 KB |
Correct : C = 2 |
15 |
Correct |
1 ms |
492 KB |
Correct : C = 2 |
16 |
Correct |
1 ms |
620 KB |
Correct : C = 2 |
17 |
Correct |
1 ms |
492 KB |
Correct : C = 2 |
18 |
Incorrect |
1 ms |
620 KB |
Wrong |
19 |
Incorrect |
1 ms |
620 KB |
Wrong |
20 |
Incorrect |
1 ms |
492 KB |
Wrong |
21 |
Incorrect |
1 ms |
620 KB |
Wrong |
22 |
Incorrect |
1 ms |
492 KB |
Wrong |
23 |
Incorrect |
1 ms |
620 KB |
Wrong |
24 |
Incorrect |
1 ms |
492 KB |
Wrong |
25 |
Incorrect |
1 ms |
492 KB |
Wrong |
26 |
Incorrect |
1 ms |
620 KB |
Wrong |
27 |
Incorrect |
1 ms |
620 KB |
Wrong |