其他分享
首页 > 其他分享> > UCF-PLC-20180825 A Fold the Paper Nicely 签到题

UCF-PLC-20180825 A Fold the Paper Nicely 签到题

作者:互联网

 

 水题

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

int a, b, k;

int main(){
    cin >> a >> b >> k;
    while(k--)
        if(a>b) a /= 2;
        else b /= 2;
    cout << max(a,b) << " " << min(a,b) << endl;
    return 0;
}

 

标签:std,cout,水题,UCF,Nicely,Fold,int,main
来源: https://www.cnblogs.com/2aptx4869/p/12636541.html