fork download
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int t;
  6. cin >> t;
  7. while(t--){
  8. int x, y, z;
  9. cin >> x >> y >> z;
  10. if(x <= y && z <= y){
  11. cout << y << endl;
  12. }
  13. else if(x <= z && y <= z){
  14. cout << z << endl;
  15. }
  16. else {
  17. cout << x << endl;
  18. }
  19. }
  20. return 0;
  21. }
Success #stdin #stdout 0s 5316KB
stdin
3
10 15 8
32 32 32
82 45 54
stdout
15
32
82