TopCoder

蔡兆豐
大家好,我是蔡兆豐。我們今天要介紹的書是我兒佳比。這本書是在講述一個名叫科。克萊爾的傳奇故事。他本來居住在童話社區,每個人都被要求。要一樣。

User's AC Ratio

100.0% (1/1)

Submission's AC Ratio

100.0% (1/1)

Tags

Description

Input Format

Output Format

Sample Input 1

3
5 8 15
11 10 5
8 12 11 12

Sample Output 1

220

Sample Input 2

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

Sample Output 2

45

Hints

Problem Source

ICPC 2026 Asia Seoul Regional Problem M

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