Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* BISMILLAHIR-RAHMANIR-RAHIM
- ____________________________________
- | |
- | SHANTO_SUST_SWE-19_029 |
- |____________________________________|
- */
- #include <bits/stdc++.h>
- using namespace std;
- #define ll long long
- #define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
- #define pb push_back
- #define Pi acos(-1.0)
- #define r0 return 0
- #define endl "\n"
- #define show(x) cout << x << endl
- #define take(x) cin >> x
- #define debug 1
- int main()
- {
- int t;
- cin >> t;
- int n, i;
- while(t--) {
- cin >> n;
- int ara[n];
- for(i = 0; i < n; i++) {
- scanf("%d", &ara[i]);
- }
- if(ara[0] + ara[1] <= ara[n - 1]) {
- printf("%d %d %d\n", 1, 2, n);
- }
- else printf("-1\n");
- }
- r0;
- }
- //ALHAMDULILLAH
Advertisement
Add Comment
Please, Sign In to add comment