Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <iostream>
- #include <algorithm>
- using namespace std;
- int main() {
- freopen("herons.in", "r", stdin);
- freopen("herons.out", "w", stdout);
- int a, b;
- cin >> a >> b;
- cout << max(a / 2 + a % 2, b / 2 + b % 2) << " " << min(a, b) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement