【Henu ACM Round#19 A】 Vasya the Hipster

【链接】 我是链接,点我呀:)
【题意】

在这里输入题意

【题解】

模拟题。 两个一起用->min(a,b); 剩下的除2加上去就好

【代码】

#include <bits/stdc++.h>
using namespace std;

int a,b;

int main()
{
    cin >> a >> b;
    cout<<min(a,b)<<' '<<abs(a-b)/2<<endl;
    return 0;
}
posted @ 2018-02-01 11:36  AWCXV  阅读(124)  评论(0编辑  收藏  举报