diff --git a/problem/P1244/P1244.cpp b/problem/P1244/P1244.cpp new file mode 100644 index 00000000..25e0ecce --- /dev/null +++ b/problem/P1244/P1244.cpp @@ -0,0 +1,10 @@ +#include + +using namespace std; + +int main() { + int h, k; + cin >> h >> k; + cout << (k + 1) * (1 << h) << endl; + return 0; +}