Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
432753 沈昊煊 【C2-4】青蛙爬井 C++ 通过 100 1 MS 244 KB 223 2026-03-17 16:28:12

Tests(10/10):


#include<iostream> using namespace std; int main(){ int high,up,down,a=0,b=1; cin>>high>>up>>down; do{ a+=up; if(a>=high){ cout<<b; break; } a-=down; b++; } while(true); return 0; }


测评信息: