fork(1) download
  1. # your code goes here
  2. n = 40 # change to be given
  3. count = 0
  4. A = [25, 10, 5, 1]
  5. temp = n
  6. for i in range(0,4):
  7. t = (int)(temp/A[i])
  8. count = count + t
  9. temp = temp - t*A[i]
  10. print (count)
Success #stdin #stdout 0.03s 9440KB
stdin
Standard input is empty
stdout
3