Submission #379473

# Submission time Handle Problem Language Result Execution time Memory
379473 2021-03-18T09:58:23 Z Halogen Lokahian Relics (FXCUP4_lokahia) C++17
0 / 100
1 ms 620 KB
#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;
    }
}
# Verdict Execution time Memory 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