题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<stdio.h> int main() { int n, h, m, x, r; scanf("%d %d %d", &n, &h, &m); if (m <= n * h) { x = m % h; if (x > 0 && x < 5) { r = m / h + 1; printf("%d", n - r); } else { r = m / h; printf("%d", n - r); } } return 0; }