【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;
}
原文地址:https://www.cnblogs.com/AWCXV/p/8398198.html