HR파이썬 List Comprehensions

개요[ | ]

HR파이썬 List Comprehensions
해커랭크 Python
# 문제 비고
HR파이썬 Basic Data Types e
8 HR파이썬 List Comprehensions
9 HR파이썬 Find the Runner-Up Score!
10 HR파이썬 Nested Lists
11 HR파이썬 Finding the percentage
12 HR파이썬 Lists
13 HR파이썬 Tuples

if __name__ == '__main__':
    x = int(input())
    y = int(input())
    z = int(input())
    n = int(input())
    print( [[i,j,k] for i in range(x+1) for j in range(y+1) for k in range(z+1) if i+j+k!=n] )
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}