为啥编译失败?
查看原帖
为啥编译失败?
1389682
zhangzr123楼主2024/11/20 20:34
#include<bits/stdc++.h>
using namespace std;
int m,t,s;
int main()
{
	cin>>m>>t>>s;
	if(t==0)
	{
		cout<<0;
		return 0;
	}
	if(s%t==0)
		cout<<max(m-s/t,0)<<endl;
	else
		cout<<max(m-s/t-1,0)<<endl;
	return 0;
2024/11/20 20:34
加载中...