반응형
SMALL
기본으로 주어지는 코드
if __name__ == '__main__':
n = int(input())
integer_list = map(int, input().split())
문제는 튜플을 만들어
hash(t)를 출력하라.
if __name__ == '__main__':
n = int(input())
integer_list = map(int, input().split())
print(hash(tuple(integer_list)))
정답1
정답2
반응형
LIST
'IT & 영상관련 > 파이썬python' 카테고리의 다른 글
python]hackerRank] String Split and Join (저장용) (1) | 2020.07.28 |
---|---|
python]hackerRank] sWAP cASE 소문자,대문자 변환(저장용) (0) | 2020.07.27 |
python]hackerRank] lists (저장용) (0) | 2020.07.25 |
python]hackerRank] Finding the percentage, 평균값(소수점)(저장용) (0) | 2020.07.24 |
python]hackerRank] Nested Lists 두번째로작은수, 중첩찾기 (저장용) (0) | 2020.07.23 |