Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
444081 黄浙峰老师 【C2-4】小虫爬墙 C++ 通过 100 1 MS 248 KB 211 2026-06-10 18:59:11

Tests(6/6):


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


测评信息: