0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 23:16:30 +00:00
OI-codes/problem/P2415/P2415.cpp
2020-09-23 19:16:49 +08:00

18 lines
245 B
C++

// R38780934
#include <bits/stdc++.h>
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;
}