第二个测试点老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;
}