输出真的是嘛也木有(悲)
查看原帖
输出真的是嘛也木有(悲)
827723
SYX2022楼主2023/8/2 18:14

我使用了我自己编的代码(如下)

#include<bits/stdc++.h>
using namespace std;
int main()
{
	double sd,jl,ans=0;
	int st=1;
	scanf("%1lf%1lf",&sd,&jl);
	while(ans>=jl)
	{
		ans+=sd;
		st++;
	}
	printf("%d",st);
	return 0;
}

然后输出了个寂寞……

em………………

求助

2023/8/2 18:14
加载中...