0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 23:36:26 +00:00
OI-codes/Luogu/problem/P2415/P2415.cpp
2021-01-02 15:30:52 +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;
}