728x90
https://www.acmicpc.net/problem/2475
list = map(int, input().split())
sum = 0
for item in list:
sum += item * item
print(sum % 10)
728x90
'CS > Algorithm' 카테고리의 다른 글
[Python : 9085] 더하기 - sum함수 (0) | 2022.02.08 |
---|---|
[python : 2576] 홀수 (0) | 2022.02.08 |
[Python : 2562] 최대값 (0) | 2022.02.08 |
[Python : 1408] 24 (시간 차이 구하는 문제) (0) | 2022.02.03 |
[Python : 5635] 생일 (sort 다중key 정렬) (0) | 2022.02.03 |