problem26.py 197 B

1234567891011
  1. #!/usr/bin/env python
  2. from decimal import Decimal as D
  3. import re
  4. for i in range(2, 11):
  5. r = str(round(1. / i, 1000))[2:-1]
  6. for l in range(len(r) / 2, 0, -1):
  7. pass
  8. print i, r