题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include <stdio.h> int main() { int n, h, m, p; while (~scanf("%d %d %d", &n, &h, &m)) { //实现多组输入 if (m % h != 0) { //判断是否有正在喝的奶 p = m / h + 1; } else { p = m / h; } printf("%d", n - p); //输出剩余 } return 0; }