mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-27 22:11:58 +00:00
18 lines
245 B
C++
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;
|
||
|
}
|