← Back to List

2052번: 지수연산 ↗

Solutions

Python 3
111 B | 111 chars
a=2**int(input())
b=10
print("0.",end="")
while b%a != 0:
 print(b//a,end="")
 b -= (b//a)*a
 b*=10
print(b//a)