Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
141739 胡海峰老师 07苹果和虫子 Python3 Accepted 32 MS 3760 KB 395 2025-12-28 14:48:38

Tests(10/10):


Code:

n,x,y = input().split() n = int(n) #total number of apples x = int(x) #eating apple speed y = int(y) #total hours #input #process eatenApples = y//x #the worm ate completed apples if y%x >0: eatenApples +=1 #the worm ate an incompleted apple leftApples = n - eatenApples #output if leftApples>=0: print( leftApples) else: print( 0)