Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 356 Bytes

数学知识.md

File metadata and controls

36 lines (26 loc) · 356 Bytes

程序员的数学知识点

1mm 折叠几次可以到到达月球?(39 万公里)

a = 1
h = a
times = 0
while h < 380000000000:
	h = h * 2
	times += 1
print(h)
print(times)
549755813888
39
a = 1
h = a
times = 0
while h < 100000000:
    h = h * 2
    times += 1
print(h)
print(times)
134217728
27