Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94167 | Hope | 07苹果和虫子 | Python3 | Accepted | 41 MS | 3780 KB | 275 | 2024-10-19 20:24:49 |
s = input().split() s = list(map(int, s)) n = s[0] x = s[1] y = s[2] if y % x == 0: if n - y//x < 0: print(0) else: print(n - y//x) else: enum = y // x + 1 if n - enum <=0: print(0) else: print(n-enum)