TopCoder

餘切
pooh is 8

User's AC Ratio

100.0% (10/10)

Submission's AC Ratio

72.0% (18/25)

Tags

Description

Input Format

Output Format

Sample Input 1

5
3 2 1 5 4
8 6 10 9 7

Sample Output 1

25

Sample Input 2

5
10 70 30 90 50
71 31 51 91 11

Sample Output 2

5

Hints

Problem Source

113 學年度全國資訊學科能力競賽
測資來源:TWPCA GitHub

Subtasks

No. Testdata Range Constraints Score
1 0~1 範例測資 0
2 0, 2~6 maxiti<minipi 40
3 0~11 無額外限制 60

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 1048576 65536 1 2 3
1 1000 1048576 65536 1 3
2 1000 1048576 65536 2 3
3 1000 1048576 65536 2 3
4 1000 1048576 65536 2 3
5 1000 1048576 65536 2 3
6 1000 1048576 65536 2 3
7 1000 1048576 65536 3
8 1000 1048576 65536 3
9 1000 1048576 65536 3
10 1000 1048576 65536 3
11 1000 1048576 65536 3