第一个和第五个wa,不知道自己错在哪,向大佬求助
查看原帖
第一个和第五个wa,不知道自己错在哪,向大佬求助
607107
sun479812353楼主2021/11/10 13:47
#include<stdio.h>
int main()
{
	int m,t,s;
	scanf("%d %d %d",&m,&t,&s);
	if(t==0){
		printf("0");
		return 0;
	}
	if(m>=s/t,s%t==0){
		printf("%d",m-s/t);
	} 
	if(m>=s/t,0!=s%t){
		printf("%d",m-s/t-1);
	}
	if(m<s/t){
		printf("0");
	}
	return 0;
}
2021/11/10 13:47
加载中...