80分求助
查看原帖
80分求助
1226856
cx2020ch楼主2024/1/6 20:49

80分求助

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int m=0,t=1,s=0,c;
    cin>>m>>t>>s;
    if (t==0){
    	cout<<0;
    	return 0;
	}
	c=m-(s/t);
    if(c<=0)cout<<0;
    else cout<<c;
        return 0;
}
2024/1/6 20:49
加载中...