Advertisement
vsevolod026

pyt

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