0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 16:18:48 +00:00
OI-codes/Luogu/P2415/P2415.cpp

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;
}