Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
92851 徐梓涵 07苹果和虫子 Python3 Accepted 43 MS 3784 KB 259 2024-10-06 15:25:05

Tests(10/10):


Code:

s=input().split() n=s[0] x=s[1] y=s[2] n=int(n) x=int(x) y=int(y) if y%x !=0: e=y//x+1 if n - e < 0: print(0) else: print(n-e) else: f=n - y//x if f < 0: print(0) else: print(f)