Forráskód Böngészése

Champernowne's constant

Adel Qalieh 13 éve
szülő
commit
983aea1783
1 módosított fájl, 8 hozzáadás és 0 törlés
  1. 8 0
      40.py

+ 8 - 0
40.py

@@ -0,0 +1,8 @@
+champ = ""
+
+concat = 1
+while len(champ) < 1000010:
+	champ += str(concat)
+	concat += 1
+
+print int(champ[0]) * int(champ[9]) * int(champ[99]) * int(champ[999]) * int(champ[9999]) * int(champ[99999]) * int(champ[999999])