#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; }
#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; }