Browse Source

Défi Turing

main
Mattéo Delabre 1 month ago
parent
commit
4d04ec815c
Signed by: matteo <spam@delab.re> GPG Key ID: AE3FBD02DC583ABB
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      turing/86.py

+ 10
- 0
turing/86.py View File

@@ -0,0 +1,10 @@
from fractions import Fraction

u1 = Fraction(3, 2)
u2 = Fraction(5, 3)

for i in range(1998):
u1, u2 = u2, 2003 - 6002 / u2 + 4000 / (u1 * u2)

print(u2)
print(round(u2))

Loading…
Cancel
Save