Advertisement
a53

FeteGraf

a53
Sep 12th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int x,y,n=0,m=0;
  6. while(cin>>x>>y)
  7. ++m,n=max(n,max(x,y));
  8. cout<<2-n+m;
  9. return 0;
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement