SHARE
TWEET

pyt

vsevolod026 Jan 26th, 2020 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top