Problems
Let us define
An array
Given an array
Input
The first line of the input gives the number of test cases,
Each test case begins with one line consisting an integer
Output
For each test case, output one line containing Case #x: y, where
Subtask
| # | Score | Condition |
|---|---|---|
| #1 | 30 | |
| #2 | 70 | For at most 30 cases: For the remaining cases: |
Example
2
5
1 -2 3 -2 4
3
1 0 3
Case #1: 14
Case #2: 12
In Sample Case #1, the happy subarrays are
In Sample Case #2, the happy subarrays are