강의

멘토링

커뮤니티

Inflearn Community Q&A

siny71771172's profile image
siny71771172

asked

I opened my eyes and it was the day before the coding test.

Problem 2 - With JAVA poison!

영상 수정안된건가요?

Written on

·

236

0

돌의내구도 = [1, 1, 1, 0]
독 = [{
"이름": "루비독",
"나이": "95년생",
"점프력": "1",
"몸무게": "1",
}

일때 루비독이 통과가 되네요;

마지막 돌까지만 가서 돌의 내구도가 0 이상이면 돌을 건넌것일테니

그냥 조건만 

while 독의위치 < len(돌의내구도) :

    독의위치 +=  int(i['점프력])

    if 독의위치 > len(돌의내구도):

        continue

로 변경하면 될것 같은데 맞을까요?

코테 준비 같이 해요!

Answer

This question is waiting for answers
Be the first to answer!
siny71771172's profile image
siny71771172

asked

Ask a question