1848: 划分字符串 - CCF-GESP2025年9月六级C++
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:1
Solved:1
Description

Input

Output
⼀⾏,⼀个整数,表⽰划分后⼦串价值之和的最⼤值。
Sample Input Copy
6
street
2 1 7 4 3 3
Sample Output Copy
13