Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
444082 王璟源 【C2-4】小虫爬墙 C++ 通过 100 1 MS 240 KB 193 2026-06-10 19:00:05

Tests(6/6):


#include<iostream> using namespace std; int main(){ int x,y,s=0,t=0; cin>>x>>y; while(s<x){ s=s+y; t++; if(s>=x){ break; } s--; t++; } cout<<t; return 0; }


测评信息: