Problem B
Beautiful Subarrays
The Great Lord Pooty has an array of numbers
Today, he wants to find a subarray with some beauty
Input
The first line contains three integers,
Output
If such a subarray exists, print
Subtasks
-
(
Points): . -
(
Points): -
(
Points): -
(
Points): and for all , -
(
Points): For all , -
(
Points): -
(
Points): No additional constraint.
Explanation
In the first sample, either
In the second sample,
In the third sample, there is no such a subarray, so we
print
Warning
The I/O files are large. Please use fast I/O methods.
Sample Input 1 | Sample Output 1 |
---|---|
4 0 5 3 2 3 2 |
0 1 |
Sample Input 2 | Sample Output 2 |
---|---|
4 1 5 2 3 2 3 |
1 3 |
Sample Input 3 | Sample Output 3 |
---|---|
1 3 9 13 |
-1 |