SHARE
TWEET

Untitled

a guest Mar 26th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. q = []
  2. z = 0
  3. for i in range(10):
  4.     w = int(input())
  5.     q.append(w)
  6.     z += w
  7. x = z // 10
  8. z = 0
  9. for i in range(10):
  10.     while q[i] < x:
  11.         p = max(q[0], q[1], q[2], q[3], q[4], q[5], q[6], q[7], q[8], q[9])
  12.         q[i] += x - q[i]
  13.         p -= x - q[i]
  14.     z += 1
  15. print(z)
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