Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
2022 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2023 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2024 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2363 . C. 大步小步向前走 (steps)
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
Gu2
User's AC Ratio
80.6% (
29/36
)
Submission's AC Ratio
35.6% (
52
/
146
)
Tags
Show solution-related tags
TOI
TOI-pre
2024-TOI-pre
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
3 2 8
1 3 4
4 2
Sample Output 1
copy
3
2 6 8
Sample Input 2
copy
3 2 9
3 4 1
4 2
Sample Output 2
copy
-1
Sample Input 3
copy
0 4 61
3 5 23 30
Sample Output 3
copy
4
30 53 58 61
Hints
Problem Source
2024 TOI 初選
測資來源:
TWPCA GitHub
Subtasks
No.
Testdata Range
Constraints
Score
1
0~1
範例測資
0
2
0~31
無額外限制
100
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1500
1048576
65536
1
2
1
1500
1048576
65536
1
2
2
1500
1048576
65536
2
3
1500
1048576
65536
2
4
1500
1048576
65536
2
5
1500
1048576
65536
2
6
1500
1048576
65536
2
7
1500
1048576
65536
2
8
1500
1048576
65536
2
9
1500
1048576
65536
2
10
1500
1048576
65536
2
11
1500
1048576
65536
2
12
1500
1048576
65536
2
13
1500
1048576
65536
2
14
1500
1048576
65536
2
15
1500
1048576
65536
2
16
1500
1048576
65536
2
17
1500
1048576
65536
2
18
1500
1048576
65536
2
19
1500
1048576
65536
2
20
1500
1048576
65536
2
21
1500
1048576
65536
2
22
1500
1048576
65536
2
23
1500
1048576
65536
2
24
1500
1048576
65536
2
25
1500
1048576
65536
2
26
1500
1048576
65536
2
27
1500
1048576
65536
2
28
1500
1048576
65536
2
29
1500
1048576
65536
2
30
1500
1048576
65536
2
31
1500
1048576
65536
2
Submit
Back to Top