Advertisement
vsevolod026

pyt

Jan 26th, 2020
1,822
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. n = int(input())
  2. res = 0
  3. cnt = 0
  4. for i in range(n):
  5. inp = int(input())
  6. print(inp % 23)
  7. if inp % 23 == 0:
  8. res += i
  9. cnt += 1
  10. else:
  11. res += cnt
  12. print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement