TopCoder

User's AC Ratio

NaN% (0/0)

Submission's AC Ratio

NaN% (0/0)

Tags

Description

Input Format

Output Format

Sample Input 1

2
4 10 6
12 -6 8 -2
6 6 3
3 3 -1 1 2 -2

Sample Output 1

2
6

Hints

Problem Source

NCPC 2026 Final Problem F

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