解题
2025-04-30 13:41:46
发布于:浙江
3阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int n;
int num = 1092;
int main() {
cin >> n;
while(n--){
if(num > 1093){
num = 1092;
} else {
if(num % 2 == 1){
num *= 2;
} else {
num -= 1;
}
}
}
cout << num;
return 0;
}
这里空空如也
有帮助,赞一个