提交时间:2020-08-22 10:41:07
运行 ID: 6026
#include<cstdio> #include<iostream> using namespace std; int main(){ double distance, stepLen; int step = 0; stepLen = 2; cin >> distance; while(distance > 0){ distance -= stepLen; stepLen /= 0.98; step++; } cout << step; }