题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<stdio.h> int main() { int n, h, m; while(scanf("%d %d %d", &n, &h, &m) != EOF) { printf("%d\n", n - (m / h) - (m % h > 0 ? 1 : 0)); } return 0; }
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
#include<stdio.h> int main() { int n, h, m; while(scanf("%d %d %d", &n, &h, &m) != EOF) { printf("%d\n", n - (m / h) - (m % h > 0 ? 1 : 0)); } return 0; }
相关推荐