728x90
https://softeer.ai/practice/result.do?eventIdx=1&submissionSn=SW_PRBL_SBMS_116035&psProblemId=413
https://softeer.ai/practice/result.do?eventIdx=1&psProblemId=413&submissionSn=SW_PRBL_SBMS_116035
softeer.ai
1
2
3
4
5
6
7
8
9
10
11
|
import sys
#sys.stdin = open("input2.txt",'r')
#4,9,25,81
#2제곱, 3제곱 5제곱 9제곱
#2,3,5,9
#2^(n-1)+1
n = int(input())
answer = (2**n+1)**2
print(answer)
|
cs |
728x90
'코딩테스트 > softeer' 카테고리의 다른 글
[python] Level2_회의실 예약 (1) | 2023.01.03 |
---|---|
[python] Level2_비밀 메뉴 (0) | 2023.01.03 |
[python] Level2_8단 변속기 (0) | 2023.01.01 |
[python] Level2_장애물 인식 프로그램 (0) | 2023.01.01 |
[python] Level1_A+B (0) | 2023.01.01 |
댓글