题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include <stdio.h> int main() { int n,h,m,temp; scanf("%d %d %d",&n,&h,&m); temp=m%h;//判断模值是否为整,现实情况是刚好处于喝完一瓶的时间点 if(temp==0) printf("%d",n-m/h); else printf("%d",n-m/h-1); return 0; }