Codeforces 1047 B. Cover Points Solution
Solve in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE
- ///Islamic University,Bangladesh
- #include<iostream>
- #include<math.h>
- #include<algorithm>
- using namespace std;
- int main()
- {
- int a,b,i,n,mx=0,c;
- while(cin>>n)
- {
- for(i=0; i<n; i++)
- {
- cin>>a>>b;
- mx=max(mx,a+b);
- }
- cout<<mx<<endl;
- }
- }
No comments