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