boj step 8 rework

This commit is contained in:
2024-03-14 16:31:19 +09:00
parent 91154a5af1
commit 2b3cfa9426
5 changed files with 113 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#include <iostream>
#include <cmath>
int main() {
int n;
std::cin >> n;
std::cout << (int) pow(((1 << n) + 1), 2);
return 0;
}