harang7447   1년 전

첫 번째 코드는 2%에서 런타임 에러가 나오고 두 번째 코드도 2%에서 출력 초과가 나오는데 해결법이 있을까요?

harang7447   1년 전

첫 번째 코드입니다

harang7447   1년 전

두 번째 코드입니다.

harang7447   1년 전

if levels.index(result[i][0]) > levels.index(result[j][0]) or levels.index(result[i][0]) == levels.index(result[j][0]) and int(result[i][1:]) < int(result[j][1:]):에서 result를 모두 tiers로 바꾸면 되네요

댓글을 작성하려면 로그인해야 합니다.