TopCoder

Caido
Waimai

User's AC Ratio

97.4% (38/39)

Submission's AC Ratio

64.3% (45/70)

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 輸入的 ni 兩兩相異,且 ni30 10
3 0~3 ni1000 30
4 0~6 ni106 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