提交时间:2025-09-15 19:44:59
运行 ID: 349592
#include<iostream> using namespace std; int main(){ int high,up,down,s=0,t=0; cin>>high>>up>>down; while(s<high){ s+=up; t++; if(s>=high){ break; }else{ s-=down; } } cout<<t; return 0; }