Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88648 胡海峰老师 07苹果和虫子 Python3 Accepted 38 MS 3776 KB 207 2024-08-19 16:55:06

Tests(10/10):


Code:

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