Saleh127

CF 1445B

Nov 1st, 2020 (edited)
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. int main()
  5. {
  6. ios_base::sync_with_stdio(0);
  7. cin.tie(0);
  8. cout.tie(0);
  9.  
  10.  
  11. int t;
  12. cin>>t;
  13. for(int cs=1; cs<=t; cs++)
  14. {
  15. int a,b,c,d,x,y;
  16. cin>>a>>b>>c>>d;
  17.  
  18. x=a+b;
  19. y=c+d;
  20.  
  21.  
  22. cout<<max(x,y)<<endl;
  23.  
  24. }
  25.  
  26. return 0;
  27. }
  28.  
RAW Paste Data Copied