题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<stdio.h>
int main()
{
float n,h,m;
scanf("%f%f%f",&n,&h,&m);
if(n-(m/h)<1) //因为还要考虑是不是时间太长,所以全部吃完,防止出现负数。
{printf("0");}
else
printf("%d",(int)(n-(m/h)));//int 强行转化
return 0;
}