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,謝謝各位^_^