Programming/Python & Data Structures
[Baekjoon/Python3] 2475번 검증수
HooNeee
2020. 12. 3. 01:49
[Baekjoon/Python3] 2475번 검증수
2475번: 검증수
컴퓨터를 제조하는 회사인 KOI 전자에서는 제조하는 컴퓨터마다 6자리의 고유번호를 매긴다. 고유번호의 처음 5자리에는 00000부터 99999까지의 수 중 하나가 주어지며 6번째 자리에는 검증수가 들
www.acmicpc.net
nums = list(map(int, input().split()))
res = 0
for i in range(5):
res += pow(nums[i], 2)
print(res % 10)