我把能想到的都写上了,但是只有40分,求解惑。
查看原帖
我把能想到的都写上了,但是只有40分,求解惑。
1547366
San__Shi楼主2024/12/11 12:06
#include <stdio.h>
int main()
{
    long long m,t,s,n;
    scanf("%lld%lld%lld",&m,&t,&s);
    if(s%t!=0)
        n=m-s/t-1;
    else 
        n=m-s/t;
    if(t==0)
        n=0;
    printf("%lld",n);
    return 0;
}
2024/12/11 12:06
加载中...