比那快
2026-08-20 20:16:41
发布于:浙江
2阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main() {
double n;
int m;
cin >> n >> m;
double a = n - floor(n);
int d = 0;
for(int i = 1; i <= m ; i++){
a = a * 2;
d = floor(a); //取整
a = a - floor(a); //舍去整数部分
}
cout << d;
return 0;
}
这里空空如也



有帮助,赞一个