为什么是80分
查看原帖
为什么是80分
594382
jaisww楼主2021/11/15 20:17
#include"stdio.h"
main()
{int m,t,s,a,b,c;
scanf("%d%d%d",&m,&t,&s);
if(t==0)
printf("%d",0);
if(t!=0)
{
b=s/t;
c=m-b;
if(c>=0) 
printf("%d",c);
if(c<0)
printf("%d",0);}
return 0;
}
2021/11/15 20:17
加载中...