Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- res = 0
- cnt = 0
- for i in range(n):
- inp = int(input())
- print(inp % 23)
- if inp % 23 == 0:
- res += i
- cnt += 1
- else:
- res += cnt
- print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement