#31239: Python (NA) 求解, 謝謝^_^


cccccsssss (CS)

學校 : 不指定學校
編號 : 197137
來源 : [111.83.211.58]
最後登入時間 :
2025-06-27 16:19:27

def main():
  while True:
    a=int(input())
    for i in range(a):
      data=list(map(int, input().split()))
      cal(data)
    break
      
def cal(data):
  x=data[0]
  d=data[1]
  n=data[2]
  day=1
  if d<=n :
    print("Poor Snail")
  else:
    while(x>d):
      x=x-d+n
      day+=1
    print(day)

main()

以上是我的解
想請問為什麼會NA,謝謝各位^_^

#31311: Re: Python (NA) 求解, 謝謝^_^


cges30901 (cges30901)

學校 : 不指定學校
編號 : 30877
來源 : [39.12.66.21]
最後登入時間 :
2025-04-20 17:19:22


  if d<=n :
    print("Poor Snail")


雖然會下滑,可是如果一天爬的距離大於等於大樓高度,一天就到了