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;
}

  

 

posted @ 2020-04-05 11:54  洛绫璃  阅读(123)  评论(0编辑  收藏  举报