Advertisement
Saleh127

cf 1398A

Aug 24th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. ios_base::sync_with_stdio(0);
  6. cin.tie(0);cout.tie(0);
  7.  
  8. int t;
  9. cin>>t;
  10. while(t--)
  11. {
  12. long long a[200000],c,d,e,f,i,j,k,l;
  13. cin>>c;
  14. for(i=1;i<=c;i++)
  15. {
  16. cin>>a[i];
  17. }
  18. if(a[1]+a[2]<=a[c])
  19. {
  20. cout<<"1 2 "<<c<<endl;
  21. }
  22. else cout<<-1<<endl;
  23.  
  24. }
  25.  
  26.  
  27. return 0;
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement