diff --git a/problem/P2415/P2415.cpp b/problem/P2415/P2415.cpp new file mode 100644 index 00000000..4cd92a2b --- /dev/null +++ b/problem/P2415/P2415.cpp @@ -0,0 +1,17 @@ +// R38780934 + +#include + +using namespace std; + +int main() { + long long sum, a, i; + sum = a = i = 0; + while (cin >> a) { + sum += a; + i++; + } + sum *= 2 << i - 2; + cout << sum << endl; + return 0; +}