Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71305 娄瀚兮 07苹果和虫子 Python3 Accepted 35 MS 3760 KB 199 2024-04-21 20:28:23

Tests(10/10):


Code:

n,x,y = input().split() n = int(n) x=int(x) y=int(y) eaten_apples = y//x if y%x !=0: eaten_apples = eaten_apples + 1 if n - eaten_apples < 0: print(0) else: print(n - eaten_apples)