## 球球巨佬们帮忙看看为什么!!
查看原帖
## 球球巨佬们帮忙看看为什么!!
406817
Daaaaaaazai楼主2022/2/17 20:28
#include <bits/stdc++.h>
using namespace std;

int main()
{
	int m,t,s,a;
	cin>>m>>t>>s; 
	if(t==0)
	{
		cout<<0<<endl;
	}
	a=m-ceil((double)s/t);
	if(a<=0)
	{
		cout<<0<<endl;
	}
	else cout<<a<<endl;
	return 0;
}

本人自己看了看发现少了个return 0;(第一个if后)球球巨佬解答为什么一定要加这个!!!!

感激不尽!!!

2022/2/17 20:28
加载中...