Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- j = 0
- for i in range(0, n):
- if ((a[i] % 10) + (a[i] % 100) + (a[i] % 1000) + (a[i] % 10000)) % 5 == 0: j += 1
- for i in range(0, n):
- if ((a[i] % 10) + (a[i] % 100) + (a[i] % 1000) + (a[i] % 10000)) % 5 == 0: a[i] = j
- print(a[i])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement