# 第四个监测点不通过,求大佬点拨
查看原帖
# 第四个监测点不通过,求大佬点拨
974649
xj2024楼主2023/4/19 20:52
# include<stdio.h>
int main()
{
  int m,t,s;
  scanf("%d %d %d",&m,&t,&s);
  float a;
  if(t==0){
    a=m;
  }else{
    a=s/t;
  }
  int b;
  if(a>=m-1){
    printf("0");
  }else{
    a=ceil(a);
    b=m-a;
    printf("%d",b);
  }
  return 0;
}
2023/4/19 20:52
加载中...