TopCoder

Caido
$\mathbb{W}\mathcal{aimai}\sim$

User's AC Ratio

100.0% (11/11)

Submission's AC Ratio

62.1% (18/29)

Tags

Description

Input Format

Output Format

Sample Input 1

2
3
6

Sample Output 1

2
8

Hints

Problem Source

112 學年度全國資訊學科能力競賽
測資來源:TWPCA GitHub

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~1 輸入的 $n_i$ 兩兩相異,且 $n_i \le 30$ 10
3 0~3 $n_i \le 1000$ 30
4 0~6 $n_i \le 10^ 6$ 10
5 0~9 無額外限制 50

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 1048576 65536 1 2 3 4 5
1 1000 1048576 65536 2 3 4 5
2 1000 1048576 65536 3 4 5
3 1000 1048576 65536 3 4 5
4 1000 1048576 65536 4 5
5 1000 1048576 65536 4 5
6 1000 1048576 65536 4 5
7 1000 1048576 65536 5
8 1000 1048576 65536 5
9 1000 1048576 65536 5