← Back to List

2475번: 검증수 ↗

Solutions

Python 3
111 B | 111 chars
a,b,c,d,e=input().split(" ")

a=int(a)
b=int(b)
c=int(c)
d=int(d)
e=int(e)

s= a*a+b*b+c*c+d*d+e*e

print(s%10)