Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Teams
Sign in
Sign up
×
Close
IOIC 2025 題目已公開!
連結
程式解題社網站
程式解題社網站
上線了!
NTUCPC OJ 現在支援 Rust !
NTUCPCPC 2026 初賽 & 決賽題目已公開!
連結
1473 . CPC 與 PCP 與水晶簇
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
餘切
$\huge\text{owoovo is 8}$
User's AC Ratio
100.0% (
5/5
)
Submission's AC Ratio
75.0% (
6
/
8
)
Tags
Show solution-related tags
ntucpcpc
ntucpcpc-2026
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
3 1 2 3 3 2 1
Sample Output 1
copy
4
Sample Input 2
copy
6 1 1 4 5 1 4 1 9 1 9 8 10
Sample Output 2
copy
45
Hints
Problem Source
Subtasks
No.
Testdata Range
Score
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1000
2097152
65536
1
1000
2097152
65536
2
1000
2097152
65536
3
1000
2097152
65536
4
1000
2097152
65536
5
1000
2097152
65536
6
1000
2097152
65536
7
1000
2097152
65536
8
1000
2097152
65536
9
1000
2097152
65536
10
1000
2097152
65536
11
1000
2097152
65536
12
1000
2097152
65536
13
1000
2097152
65536
14
1000
2097152
65536
15
1000
2097152
65536
16
1000
2097152
65536
17
1000
2097152
65536
18
1000
2097152
65536
19
1000
2097152
65536
Submit
Back to Top