# TopCoder

\begin{align} AC \times 2^9 \\ \text{New TIOJ ?} \end{align}

92.1% (58/63)

55.7% (127/228)

# Description

$f_{2,0} = 0$，
$f_{2,1} = mex(\{ f_{2,0}\}) = mex(\{0\}) = 1$，
$f_{2,2} = mex(\{ f_{2,1}\}) = mex(\{1\}) = 0$，
$f_{2,3} = mex(\{ f_{2,2}\}) = mex(\{0\}) = 1$，
$f_{2,4} = mex( \{ f_{2,3}, f_{2,2} \} ) = mex(\{1, 0\}) = 2$。

1 26

26

2 3

1

# Problem Source

105學年度高級中學資訊學科能力競賽決賽 程式設計試題第三題

No. Testdata Range Score
1 0~4 13
2 5~9 23
3 5~14 23
4 5~19 41

# Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 524288 262144 1
1 1000 524288 262144 1
2 1000 524288 262144 1
3 1000 524288 262144 1
4 1000 524288 262144 1
5 1000 524288 262144 2 3 4
6 1000 524288 262144 2 3 4
7 1000 524288 262144 2 3 4
8 1000 524288 262144 2 3 4
9 1000 524288 262144 2 3 4
10 1000 524288 262144 3 4
11 1000 524288 262144 3 4
12 1000 524288 262144 3 4
13 1000 524288 262144 3 4
14 1000 524288 262144 3 4
15 1000 524288 262144 4
16 1000 524288 262144 4
17 1000 524288 262144 4
18 1000 524288 262144 4
19 1000 524288 262144 4