题解 | #KiKi和酸奶#
KiKi和酸奶
http://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
int main()
{
int n,h,m;
int a;
scanf("%d %d %d",&n,&h,&m);
a=n-(m/h);
if(m%h!=0)
a--;
printf("%d",a);
return 0;
}
KiKi和酸奶
http://www.nowcoder.com/practice/c7721f3a1b1a47a783974453e82cadbb
int main()
{
int n,h,m;
int a;
scanf("%d %d %d",&n,&h,&m);
a=n-(m/h);
if(m%h!=0)
a--;
printf("%d",a);
return 0;
}
相关推荐