救救孩子吧!第3点WA!
查看原帖
救救孩子吧!第3点WA!
900924
Lost_Castle楼主2023/7/22 14:09
#include<bits/stdc++.h>
using namespace std;
int main(){
	int m,t,s,z;
	cin>>m>>t>>s;
	if(t==0)
	{
		cout<<0<<endl;
		return 0;
	}
	if(s/t%10!=0){
	    z=s/t+1;
	}else{
	    z=s/t;
	}
	if(z>m){
		cout<<0;
	}else{
	cout<<m-z;	
	}
	return 0;
} 
2023/7/22 14:09
加载中...