题解王高缘2026-03-14 15:41:17发布于:北京1阅读0回复0点赞#include <bits/stdc++.h> using namespace std; int main(){ int k; cin >> k; int s=0,a=1; while (true){ s+=a; a*=2; if (s>=k){ cout << s << endl; break; } } return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个