TopCoder

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

User's AC Ratio

100.0% (3/3)

Submission's AC Ratio

100.0% (3/3)

Tags

Description

Input Format

Output Format

Sample Input 1

6
2
3
4
5
8
15

Sample Output 1

2
2 3
2 3 4
2 3 4 5
2 3 4 5 6 8 1
2 3 4 5 6 8 9 10 12 1 7 11 14 13

Hints

Problem Source

112 學年度全國資訊學科能力競賽模擬賽

Subtasks

No. Testdata Range Constraints Score
1 0 範例測資 0
2 0~4 $a_i \leq 30, \sum\limits_{i=1}^ {N} a_i \leq 500$ 10
3 0~8 $a_i \leq 120, \sum\limits_{i=1}^ {N} a_i \leq 8000$ 20
4 0~12 $a_i \leq 1800, \sum\limits_{i=1}^ {N} a_i \leq 30000$ 30
5 0~33 無額外限制 40

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 2000 524288 65536 1 2 3 4 5
1 2000 524288 65536 2 3 4 5
2 2000 524288 65536 2 3 4 5
3 2000 524288 65536 2 3 4 5
4 2000 524288 65536 2 3 4 5
5 2000 524288 65536 3 4 5
6 2000 524288 65536 3 4 5
7 2000 524288 65536 3 4 5
8 2000 524288 65536 3 4 5
9 2000 524288 65536 4 5
10 2000 524288 65536 4 5
11 2000 524288 65536 4 5
12 2000 524288 65536 4 5
13 2000 524288 65536 5
14 2000 524288 65536 5
15 2000 524288 65536 5
16 2000 524288 65536 5
17 2000 524288 65536 5
18 2000 524288 65536 5
19 2000 524288 65536 5
20 2000 524288 65536 5
21 2000 524288 65536 5
22 2000 524288 65536 5
23 2000 524288 65536 5
24 2000 524288 65536 5
25 2000 524288 65536 5
26 2000 524288 65536 5
27 2000 524288 65536 5
28 2000 524288 65536 5
29 2000 524288 65536 5
30 2000 524288 65536 5
31 2000 524288 65536 5
32 2000 524288 65536 5
33 2000 524288 65536 5