← Back to List

2903번: 중앙 이동 알고리즘 ↗

Solutions

C++14
138 B | 138 chars
#include <iostream>
using namespace std;
long long int N,a=2;
int main()
{
	cin>>N;
	for(int x=0; x<N; x++)
	{
		a=2*a-1;
	}
	cout<<a*a;
}