SHARE
TWEET

Untitled

a guest Oct 21st, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. m = int(input())
  3. k = int(input())
  4.  
  5. arr = []
  6. arr2 = []
  7.  
  8. for s in range(0,m):
  9.   for i in range(0,n):
  10.     a = (i+s)%k
  11.     arr.append(a)
  12.  
  13. for t in range(0,k):
  14.   l = arr.count(t)
  15.   arr2.append(l)
  16.  
  17. for i in arr2:
  18.   print(i, end=" ")
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top