15686번 - 치킨 배달
combinations 부를 때
itertools.combinations() 부르지마시고
list(combinations()) 해주세요.
왜인진 모르겠으나 백준은 list라고 정의해줘야 다음 for문에서 쓸수있나봅니다..
이것때문에한참 고민했네요.
combinations은 클래스이기 때문에 list선언해줘야됩니다.
댓글을 작성하려면 로그인해야 합니다.
2sy0127 3년 전
combinations 부를 때
itertools.combinations() 부르지마시고
list(combinations()) 해주세요.
왜인진 모르겠으나 백준은 list라고 정의해줘야 다음 for문에서 쓸수있나봅니다..
이것때문에한참 고민했네요.