Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
441163 王璟源 【C2-4】小虫爬墙 C++ 解答错误 0 1 MS 240 KB 184 2026-05-17 15:32:48

Tests(0/6):


#include<iostream> using namespace std; int main(){ int Y,X; cin>>Y>>X; int s=0,m=0; while(s<X){ s=s+(Y-1); m=m+2; if(s+Y==X){ cout<<m+1; } } return 0; }


测评信息: