반응형
문제 설명
https://www.acmicpc.net/problem/2475
제출한 코드
a, b, c, d, e= map(int, input().split())
total = a*a + b*b + c*c + d*d + e*e
print(total%10)
결과

후기
반응형
'BQJ 백준 > python' 카테고리의 다른 글
[Python/파이썬] 백준 2525번: 오븐 시계 (0) | 2024.06.20 |
---|---|
[Python/파이썬] 백준 2480번: 주사위 세개 (0) | 2024.06.20 |
[Python/파이썬] 백준 2455번: 지능형 기차 (0) | 2024.06.20 |
[Python/파이썬] 백준 2444번: 별 찍기 - 7 (0) | 2024.06.17 |
[Python/파이썬] 백준 2443번: 별 찍기 - 6 (0) | 2024.06.17 |