본문 바로가기
python-algorithm

[백준] 2903

by 무적김두칠 2020. 12. 22.

1
2
import sys
print( (2**int(sys.stdin.readline())+1)**2 )
cs

stdin.readline()안쓰고 input()쓰면 한줄로도 가능하겠네요
점화식 구하시면 쉽게 구할 수 있습니다^^7

반응형

'python-algorithm' 카테고리의 다른 글

[백준] 2935  (0) 2020.12.22
[백준] 2921  (0) 2020.12.22
[백준] 2863  (0) 2020.12.22
[백준] 2754  (0) 2020.12.22
[백준] 2747  (0) 2020.12.22

댓글