#include <bits/stdc++.h>
using namespace std;
#define int long long int
bool cmp(int a,int b){
if(a>b){
return true;
}
else{
return false;
}
}
int32_t main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t;
cin>>t;
while(t--){
int a,b,c,d;
cin>>a>>b>>c>>d;
cout<<max((a+b),(c+d))<<endl;
}
}
2nd question solution
using namespace std;
#define int long long int
bool cmp(int a,int b){
if(a>b){
return true;
}
else{
return false;
}
}
int32_t main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t;
cin>>t;
while(t--){
int a,b,c,d;
cin>>a>>b>>c>>d;
cout<<max((a+b),(c+d))<<endl;
}
}
2nd question solution
3rd mai TLE kis kis ka aaya ?
Anonymous Poll
48%
mera bhi TLE aaya ?
15%
maine nhi pda
38%
maine contest nhi khela
Code chef long challenge mai kitne question kr liye ?
Anonymous Poll
35%
2
24%
3
22%
4
5%
5
14%
Sare kar liye
TOday Codeforces Round #686 (Div. 3)
https://codeforces.com/contests
https://codeforces.com/contests
Codeforces
Contests - Codeforces
Codeforces. Programming competitions and contests, programming community