Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
1306
已加強測資並 rejudge
2401 . 加簽申請
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
Caido
W
aimai
∼
User's AC Ratio
100.0% (
4/4
)
Submission's AC Ratio
100.0% (
4
/
4
)
Tags
Show solution-related tags
pre-nhspc-2023
全國模擬賽
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
6
2
3
4
5
8
15
Sample Output 1
copy
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
≤
30
,
∑
i
=
1
N
a
i
≤
500
10
3
0~8
a
i
≤
120
,
∑
i
=
1
N
a
i
≤
8000
20
4
0~12
a
i
≤
1800
,
∑
i
=
1
N
a
i
≤
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
Submit
Back to Top