Source Code
n=int(input())
x=list(map(int,input().split()))
sum=0
for i in range(n):
   x[i]=x[i]%10
   sum=sum+x[i]
print(sum)  



Copy
The Tale of a Generous Prince dalia tamimi
Python 2
13 ms
3.2 MB
Runtime Error