BC35 KiKi和酸奶
思路:
step1:输入三个数据;
step2:创建边界条件;
step3:如果不能整除,所喝酸奶数量+1;如果可以整除,直接输出所喝酸奶数;
step4:打印剩余酸奶数量;
代码如下:
n,h,m = list(map(int,input().split()))
if m <= n*h:
if m%h != 0:
x = m//h + 1
else:
x = m//h
print(n - x)
n,h,m = list(map(int,input().split()))
if m <= n*h:
if m%h != 0:
x = m//h + 1
else:
x = m//h
print(n - x)