0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 17:56:28 +00:00

P2415 集合求和

R38780934
This commit is contained in:
Baoshuo Ren 2020-09-23 19:16:49 +08:00 committed by Baoshuo Ren
parent 900ad6a48a
commit f583f042cb
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

17
problem/P2415/P2415.cpp Normal file
View File

@ -0,0 +1,17 @@
// 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;
}