789166613

shijunyu · 发布于 2026-02-05 · 浏览 242 回复 0

include

using namespace std;

int main() {

double x, s = 0, d = 2;
int n = 0;
cin >> x;
while (s < x)
	s += d, d *= 0.98, n++;
cout << n << endl;

return 0;

}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复