mirror of
https://github.com/correl/euler.git
synced 2024-11-23 19:19:53 +00:00
Added utf-8 header to exercise 027
This commit is contained in:
parent
65719721c9
commit
43ecfff029
1 changed files with 2 additions and 1 deletions
3
e027.py
3
e027.py
|
@ -1,3 +1,4 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Find the value of d < 1000 for which 1/d contains the longest recurring cycle.A unit fraction contains 1 in the numerator.
|
||||
|
||||
The decimal representation of the unit fractions with denominators 2 to 10 are given:
|
||||
|
@ -69,4 +70,4 @@ def main():
|
|||
fraction = Decimal(1) / Decimal(i)
|
||||
print '1/{0} = {1} ({2})'.format(i, fraction, cycle), fraction.is_subnormal()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue