Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
86154 丁俊杰 07苹果和虫子 Python3 Accepted 42 MS 3764 KB 239 2024-07-23 09:22:29

Tests(10/10):


Code:

n,x,y=map(int,input().split()) apples=y//x if y%x>0: apples+=1 else: apples=apples if apples>n: #假设吃掉的苹果大于一箱的苹果数 print(0) #输出的是0 else: print(n-apples)