TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

3
1 1 1
1 1 1
1 1 1

Sample Output 1

1

Sample Input 2

5
-1864 -1594 10835 -3047 -4335
7770 -7518 6966 -5164 -2049
9772 3585 -6814 -5901 -647
3744 6476 458 6577 -17250
-19427 -944 -11450 7540 24276

Sample Output 2

9

Sample Input 3

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

Sample Output 3

0

Hints

Problem Source

NPSC 2020 國中組決賽 pD

Subtasks

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

Testdata and Limits

No. Time Limit (ms) Memory Limit (VSS, KiB) Output Limit (KiB) Subtasks
0 1000 1048576 1048576 1 2
1 1000 1048576 1048576 1 2
2 1000 1048576 1048576 1 2
3 1000 1048576 1048576 2
4 1000 1048576 1048576 2
5 1000 1048576 1048576 2
6 1000 1048576 1048576 2
7 1000 1048576 1048576 2
8 1000 1048576 1048576 2
9 1000 1048576 1048576 2
10 1000 1048576 1048576 2
11 1000 1048576 1048576 2
12 1000 1048576 1048576 2
13 1000 1048576 1048576 2
14 1000 1048576 1048576 2
15 1000 1048576 1048576 2
16 1000 1048576 1048576 2
17 1000 1048576 1048576 2