TopCoder

User's AC Ratio

100.0% (6/6)

Submission's AC Ratio

90.9% (10/11)

Tags

Description

Input Format

Output Format

Sample Input 1

3
1 1 1
2 2 2
3 3 3

Sample Output 1

6

Sample Input 2

3
1 3 2
3 5 7
5 8 4

Sample Output 2

7

Sample Input 3

3
1 3 5
3 5 7
5 8 11

Sample Output 3

16

Hints

Problem Source

YTP 2021 高中組程式挑戰營 p7

Subtasks

No. Testdata Range Constraints Score
1 0~2 範例測資 0
2 0~12 無額外限制 20

Testdata and Limits

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