题解 | #KiKi和酸奶#
KiKi和酸奶
http://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<stdio.h>
int main(void)
{
int n,h,m;
while((scanf("%d %d %d",&n,&h,&m))!=EOF)//多组输入
{
if(m%h>0)//m%h用来判断是否目前正在喝但是尚未喝光的酸奶
printf("%d\n",n-m/h-1);
else
printf("%d\n",n-m/h);
}
return 0;
}