Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,x,y;
  6. cin>>a>>b;
  7. x = min(a,b);
  8. y = max(a,b);
  9. cout<<x<<" "<<(y-x)/2<<endl;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement