silentkiler029

cf-1398-A

Aug 14th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1. /*    BISMILLAHIR-RAHMANIR-RAHIM
  2.  ____________________________________
  3. |                                    |
  4. |       SHANTO_SUST_SWE-19_029       |
  5. |____________________________________|
  6. */
  7.  
  8. #include <bits/stdc++.h>
  9.  
  10. using namespace std;
  11.  
  12. #define ll          long long
  13. #define fastio      ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
  14. #define pb          push_back
  15. #define Pi          acos(-1.0)
  16. #define r0          return 0
  17. #define endl        "\n"
  18. #define show(x)     cout << x << endl
  19. #define take(x)     cin >> x
  20. #define debug       1
  21.  
  22. int main()
  23. {
  24.     int t;
  25.     cin >> t;
  26.     int n, i;
  27.  
  28.     while(t--) {
  29.         cin >> n;
  30.         int ara[n];
  31.         for(i = 0; i < n; i++) {
  32.             scanf("%d", &ara[i]);
  33.         }
  34.         if(ara[0] + ara[1] <= ara[n - 1]) {
  35.             printf("%d %d %d\n", 1, 2, n);
  36.         }
  37.         else printf("-1\n");
  38.     }
  39.  
  40.     r0;
  41. }
  42.  
  43. //ALHAMDULILLAH
  44.  
  45.  
Advertisement
Add Comment
Please, Sign In to add comment