작성
·
184
0
def going(stone, dog):
list_n = [];
for i in dog:
print(i)
cur_loc = 0
while cur_loc < len(stone)-1:
print(cur_loc)
stone[int(i["점프력"])-1] = stone[int(i["점프력"])-1] - int(i["몸무게"])
cur_loc = cur_loc + int(i["점프력"])
print("이동후", cur_loc)
if stone[cur_loc]<0:
# list_n.append("0")
break
if cur_loc >= len(stone)-1:
list_n.append(i["이름"])
print(list_n)
# for i in list_n:
# if i == True:
going(stone, dog)
답변