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

浙公网安备 33010602011771号