Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
313203 梁睿煊 【C2-4】小虫爬墙 C++ 通过 100 1 MS 244 KB 202 2025-03-20 20:06:21

Tests(6/6):


#include<bits/stdc++.h> using namespace std; int main(){ int x,y,s=0,c=0; cin>>x>>y; while(x>0){ s+=y; c++; if(s>=x){ cout<<c; return 0; } s-=1; c++; } return 0; }


测评信息: