Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73415 胡海峰老师 07苹果和虫子 Python3 Accepted 32 MS 3764 KB 212 2024-05-18 19:49:02

Tests(10/10):


Code:

n,x,y = input().split() n,x,y = int(n),int(x),int(y) apples = y//x #吃掉整数个(完整的) if y%x > 0 : apples = apples +1 #吃掉一些的苹果(1个) res = max(0,n-apples) print(res)