0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-27 21:31:59 +00:00
OI-codes/problem/P2415/P2415.cpp

18 lines
245 B
C++
Raw Normal View History

2020-09-23 11:16:49 +00:00
// 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;
}