TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

5 3 4
1 3 5 2 4
4 1 2 3 5

Sample Output 1

18

Sample Input 2

4 -1 0
1 2 3 4
4 3 2 1

Sample Output 2

-6

Hints

Problem Source

ICPC 2026 Asia Seoul Regional Problem D

Subtasks

No. Testdata Range Score

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 1048576 1048576
1 1000 1048576 1048576
2 1000 1048576 1048576
3 1000 1048576 1048576
4 1000 1048576 1048576
5 1000 1048576 1048576
6 1000 1048576 1048576
7 1000 1048576 1048576
8 1000 1048576 1048576
9 1000 1048576 1048576
10 1000 1048576 1048576
11 1000 1048576 1048576
12 1000 1048576 1048576
13 1000 1048576 1048576
14 1000 1048576 1048576
15 1000 1048576 1048576
16 1000 1048576 1048576
17 1000 1048576 1048576
18 1000 1048576 1048576
19 1000 1048576 1048576
20 1000 1048576 1048576
21 1000 1048576 1048576
22 1000 1048576 1048576
23 1000 1048576 1048576
24 1000 1048576 1048576
25 1000 1048576 1048576
26 1000 1048576 1048576
27 1000 1048576 1048576
28 1000 1048576 1048576
29 1000 1048576 1048576
30 1000 1048576 1048576
31 1000 1048576 1048576
32 1000 1048576 1048576
33 1000 1048576 1048576
34 1000 1048576 1048576
35 1000 1048576 1048576
36 1000 1048576 1048576
37 1000 1048576 1048576
38 1000 1048576 1048576
39 1000 1048576 1048576
40 1000 1048576 1048576
41 1000 1048576 1048576
42 1000 1048576 1048576
43 1000 1048576 1048576
44 1000 1048576 1048576
45 1000 1048576 1048576
46 1000 1048576 1048576
47 1000 1048576 1048576
48 1000 1048576 1048576
49 1000 1048576 1048576
50 1000 1048576 1048576
51 1000 1048576 1048576
52 1000 1048576 1048576