Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
NTUCPC Speed Run! #1
比賽已結束,感謝大家的參與!
題目連結
IOICamp 2025 PreExam 進行中!
IOICamp 官網
、
PreExam 連結
程式解題社網站
程式解題社網站
上線了!
382 . 跳吧!電熊
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
Caido
主唱太拼命了
User's AC Ratio
42.9% (
3/7
)
Submission's AC Ratio
23.5% (
4
/
17
)
Tags
Show solution-related tags
ytp
ytp-senior
ytp-2021
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
3 3
-4 -2 -4
Sample Output 1
copy
-2
Sample Input 2
copy
3 1
-3 -5 -3
Sample Output 2
copy
-6
Sample Input 3
copy
3 2
-3 -5 -3
Sample Output 3
copy
-5
Hints
Problem Source
YTP 2021 高中組程式挑戰營 p6
Subtasks
No.
Testdata Range
Constraints
Score
1
0~2
範例測資
0
2
0~11
$N \leq 20$
10
3
0~19
$N \leq 3000$
2
4
0~25
無額外限制
8
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1000
262144
65536
1
2
3
4
1
1000
262144
65536
1
2
3
4
2
1000
262144
65536
1
2
3
4
3
1000
262144
65536
2
3
4
4
1000
262144
65536
2
3
4
5
1000
262144
65536
2
3
4
6
1000
262144
65536
2
3
4
7
1000
262144
65536
2
3
4
8
1000
262144
65536
2
3
4
9
1000
262144
65536
2
3
4
10
1000
262144
65536
2
3
4
11
1000
262144
65536
2
3
4
12
1000
262144
65536
3
4
13
1000
262144
65536
3
4
14
1000
262144
65536
3
4
15
1000
262144
65536
3
4
16
1000
262144
65536
3
4
17
1000
262144
65536
3
4
18
1000
262144
65536
3
4
19
1000
262144
65536
3
4
20
1000
262144
65536
4
21
1000
262144
65536
4
22
1000
262144
65536
4
23
1000
262144
65536
4
24
1000
262144
65536
4
25
1000
262144
65536
4
Submit
Back to Top