#V. XHXMMMl317hKWg#+`@@
XHXMMMl317hKWg#+`@@
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Statement
You are given an array , which is sorted in non-decreasing order ( .
Find three indices , , such that and it is impossible to construct a non-degenerate triangle (a triangle with nonzero area) having sides equal to , and (for example it is possible to construct a non-degenerate triangle with sides , and but impossible with sides , and ). If it is impossible to find such triple, report it.
Format
Input
The first line contains one integer ( ) — the number of test cases.
The first line of each test case contains one integer ( ) — the length of the array .
The second line of each test case contains integers ( ; ) — the array .
It is guaranteed that the sum of over all test cases does not exceed .
Output
For each test case print the answer to it in one line.
If there is a triple of indices , , ( ) such that it is impossible to construct a non-degenerate triangle having sides equal to , and , print that three indices in ascending order. If there are multiple answers, print any of them.
Otherwise, print -1.
Sample
3
7
4 6 11 11 15 18 20
4
10 10 10 11
3
1 1 1000000000
2 3 6
-1
1 2 3
ShanghaiTech ACM 炸鱼杯
- 状态
- 已结束
- 规则
- OI
- 题目
- 46
- 开始于
- 2024-12-10 23:00
- 结束于
- 2024-12-15 13:00
- 持续时间
- 110 小时
- 主持人
- 参赛人数
- 112