题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
int main(void) { int n, h, m; scanf("%d %d %d", &n, &h, &m); //KiKi喝牛奶的速度为1/h盒每分,m分钟后他可以喝了m*1/h盒,乘1.0是将整数运算先转换成浮点运算 n -= 1.0*m/h; printf("%d\n", n); return 0; }
#猹的刷题生涯#