Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x,y,n=0,m=0;
- while(cin>>x>>y)
- ++m,n=max(n,max(x,y));
- cout<<2-n+m;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement