Codeforces 581A Vasya the Hipster

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/polanwind/article/details/84137537
#include <cstdio>
#include <algorithm>

using namespace std;

int main(){
    int a,b;
    scanf("%d %d",&a,&b);
    printf("%d %d\n",min(a,b),((a+b)-2*min(a,b))/2);
    return 0;
}

猜你喜欢

转载自blog.csdn.net/polanwind/article/details/84137537
今日推荐