题解 | #KiKi和酸奶#
KiKi和酸奶
https://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
# include<stdio.h>
int main()
{
int n, h, m;
scanf("%d%d%d", &n, &h, & m);
printf("%d",n - ((m-1 )/ h + 1));
//(m - 1) / h + 1 为 m / h 向上取整
return 0;
}
int main()
{
int n, h, m;
scanf("%d%d%d", &n, &h, & m);
printf("%d",n - ((m-1 )/ h + 1));
//(m - 1) / h + 1 为 m / h 向上取整
return 0;
}