fork download
  1. # your code goes here
  2. import sys
  3.  
  4. input = sys.stdin.readline
  5.  
  6. T = int(input().rstrip())
  7.  
  8. for _ in range(T):
  9. dollar = int(input().rstrip()) / 100
  10. print(dollar)
  11. print(int(dollar // 0.25), end = ' ')
  12. dollar %= 0.25
  13. print(dollar)
  14. print(int(dollar // 0.10), end = ' ')
  15. dollar %= 0.10
  16. print(dollar)
  17. print(int(dollar // 0.05), end = ' ')
  18. dollar %= 0.05
  19. print(dollar)
  20. print(int(dollar // 0.01), end = ' ')
  21. print()
Success #stdin #stdout 0.03s 9984KB
stdin
3
124
25
194
stdout
1.24
4 0.24
2 0.03999999999999998
0 0.03999999999999998
3 
0.25
1 0.0
0 0.0
0 0.0
0 
1.94
7 0.18999999999999995
1 0.08999999999999994
1 0.03999999999999994
3