题解 | #KiKi和酸奶#
KiKi和酸奶
http://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<stdio.h> int main(){ int n = 0; int h = 0; int m = 0; scanf("%d %d %d",&n,&h,&m); if(m%h==0) printf("%d\n",n-(m/h)); if(m%h!=0)//剩余的时间不够喝完一盒牛奶,但是能开瓶 printf("%d\n",n-(m/h)-1); return 0; }