1729 @ ウィキ

busybeaver


※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

もっとも大きい自然数を出力するpythonプログラムを書くゲーム

7byte
print 9

8byte
print 99

9byte
print 999

10byte
print`9`*9

11byte
print`9`*99

12byte
print`9`*999

13byte
print`9`*9**9

14byte
print`9`*9**99

15byte
print`9`*9**999

16byte
print`9`*9**9**9

17byte
print`9`*9**9**99

18byte
print`9`*9**9**999

19byte
print`9`*9**9**9**9

20byte
print`9`*9**9**9**99

21byte
exec"print 9"+"**9"*9

22byte
exec"print 9"+"**9"*99

23byte
exec"print 9"+"**9"*999

24byte
exec"print 9"+"**9"*9**9

25byte
exec"print 9"+"**9"*9**99

26byte
exec"print 9"+"**9"*9**999

27byte
exec"print 9"+"**9"*9**9**9

28byte
exec"print 9"+"**9"*9**9**99

29byte
exec"print 9"+"**9"*9**9**999

30byte
exec"print 9"+"**9"*9**9**9**9

31byte
exec"print 9"+"**9"*9**9**9**99

32byte
exec"print 9"+"**9"*9**9**9**999

33byte
exec"print 9"+"**9"*9**9**9**9**9

34byte
exec"print 9"+"**9"*9**9**9**9**99

35byte
a=9;exec'exec"a**=a;"*a;'*9;print a

36byte
a=99;exec'exec"a**=a;"*a;'*a;print a

37byte
a=999;exec'exec"a**=a;"*a;'*a;print a

38byte
a=9**9;exec'exec"a**=a;"*a;'*a;print a

39byte
a=99;exec'exec"a**=a;"*a;'*a**a;print a

40byte
a=999;exec'exec"a**=a;"*a;'*a**a;print a

41byte
a=9**9;exec'exec"a**=a;"*a;'*a**a;print a

42byte
a=99;exec'exec"a**=a;"*a;'*a**a**a;print a

43byte
a=999;exec'exec"a**=a;"*a;'*a**a**a;print a

44byte
a=9**9;exec'exec"a**=a;"*a;'*a**a**a;print a

45byte
a=99;exec'exec"a**=a;"*a;'*a**a**a**a;print a

46byte
a=999;exec'exec"a**=a;"*a;'*a**a**a**a;print a

47byte
a=9**9;exec'exec"a**=a;"*a;'*a**a**a**a;print a

48byte
a=99;exec'exec"a**=a;"*a;'*a**a**a**a**a;print a

49byte
a=9;s='exec"a**=a;"*a;';exec"exec s*a;"*9;print a

50byte
a=99;s='exec"a**=a;"*a;';exec"exec s*a;"*a;print a

51byte
f=lambda x,y:x*y and y+f(x-1,f(x,y-1))
print f(9,9)

52byte
f=lambda x,y:x*y and y+f(x-1,f(x,y-1))
print f(99,9)

53byte
f=lambda x,y:x*y and y+f(x-1,f(x,y-1))
print f(999,9)

54byte
f=lambda x,y=9:x*y and y+f(x-1,f(x,y-1))
print f(f(9))

55byte
f=lambda x,y=9:x*y and y+f(x-1,f(x,y-1))
print f(f(99))

56byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*9)

57byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*99)

58byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*999)

59byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*9**9)

60byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*9**99)

61byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*9**999)

62byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*9**9**9)

63byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*9**9**99)

64byte
print reduce(lambda x,y:x*y and y+f(x-1,f(x,y-1)),[9]*9**9**999)

65byte
f=lambda x,y:x*y and y+f(x-1,f(x,y-1))
print reduce(f,[9]*f(9,9))

66byte
f=lambda x,y:x*y and y+f(x-1,f(x,y-1))
print reduce(f,[9]*f(99,9))

67byte
f=lambda x,y:x*y and y+f(x-1,f(x,y-1))
print reduce(f,[9]*f(999,9))

68byte
f=lambda x,y=9:x*y and y+f(x-1,f(x,y-1))
print reduce(f,[9]*f(f(9)))

69byte
f=lambda x,y=9:x*y and y+f(x-1,f(x,y-1))
print reduce(f,[9]*f(f(99)))

70byte
f=lambda n,x,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(9,9)

71byte
f=lambda n,x,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(99,9)


72byte
f=lambda n,x,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(999,9)


73byte
f=lambda n,x=9,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(f(9))

74byte
f=lambda n,x=9,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(f(99))

75byte
f=lambda n,x=9,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(f(999))


76byte
f=lambda n,x=9,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(f(f(9)))


77byte
f=lambda n,x=9,y=9:n*x*y and x+y+f(n-1,f(n,x-1,f(n,x,y-1)))
print f(f(f(99)))


240byte
def l(s):
 if s:return l(s[0])+[s[1]]
 return[]
def f(s):
 if type(s[1])==list:return f([s[0],f(s[1])])
 if s[0]==0:return-~s[1]
 x=l(s);m=x[1];exec"m=[x[0],m];"*x[-1]
 for i in x[2:]:m=[m,i]
 return f(m)
y=0;exec"y=[y,y];"*9;print f([y,9])