mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-30 18:36:27 +00:00
P2415 集合求和
R38780934
This commit is contained in:
parent
900ad6a48a
commit
f583f042cb
17
problem/P2415/P2415.cpp
Normal file
17
problem/P2415/P2415.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user