求助!
查看原帖
求助!
467663
朝闻道楼主2021/1/11 19:38

第二个测试点老RE。。。大佬帮忙康康哪儿错了!orz

#include<iostream>
using namespace std;
int main()
{
	int s,t,m;
	cin>>m>>t>>s;
	if(t==0)
    {
	cout<<0<<endl;
    }
if(s==0)
cout<<m;
	if(m-s/t>0)
	{
	if(s%t==0)
{	cout<<m-s/t<<endl;}
	if(s%t!=0)
	cout<<m-s/t-(1-((((s/t)*10)%10)/10))<<endl;
	}
	if(m-s/t<=0)
{	cout<<0<<endl;}
	return 0;
}
2021/1/11 19:38
加载中...