Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 9th, 2020 133 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a=[]
  2. n=int(input("n: "))
  3. k=0
  4. s=0
  5. j=0
  6. for i in range(n):
  7.     a.append(int(input("a[i]: ")))
  8.     j=a[i]
  9.     while j>0:
  10.         s+=j%10
  11.         j=j//10
  12.     if s%5==0:
  13.         a[i]=0
  14.         k+=1
  15.     s=0
  16. for i in range(n):
  17.     if a[i]==0:
  18.         a[i]=k
  19.     print(a[i])
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