F. 【深基7.习6】集合求和

    Type: RemoteJudge 1000ms 256MiB

【深基7.习6】集合求和

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目描述

给定一个集合 ss(集合元素数量 30\le 30),求出此集合所有子集元素之和。

输入格式

集合中的元素(元素 1000\le 1000

输出格式

ss 所有子集元素之和。

2 3

10

提示

【样例解释】

子集为:,{2},{3},{2,3}\varnothing, \{ 2 \}, \{ 3 \}, \{ 2, 3 \},和为 2+3+2+3=102 + 3 + 2 + 3 = 10


【数据范围】

对于 100%100 \% 的数据,1s301 \le \lvert s \rvert \le 301si10001 \le s_i \le 1000ss 所有子集元素之和 1018\le {10}^{18}

假期基础训练(第四周)

Not Claimed
Status
Done
Problem
11
Open Since
2025-7-27 0:00
Deadline
2025-8-15 23:59
Extension
24 hour(s)