結果

問題 No.2062 Sum of Subset mod 999630629
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2022-08-11 08:41:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 201 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 82,428 KB
実行使用メモリ 81,840 KB
最終ジャッジ日時 2024-04-21 13:57:35
合計ジャッジ時間 3,056 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,096 KB
testcase_01 AC 40 ms
51,328 KB
testcase_02 AC 35 ms
51,712 KB
testcase_03 AC 36 ms
51,840 KB
testcase_04 AC 43 ms
51,712 KB
testcase_05 AC 35 ms
51,712 KB
testcase_06 AC 36 ms
51,712 KB
testcase_07 AC 37 ms
51,712 KB
testcase_08 AC 61 ms
78,976 KB
testcase_09 AC 61 ms
75,136 KB
testcase_10 AC 60 ms
73,344 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 59 ms
76,928 KB
testcase_24 AC 60 ms
77,184 KB
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #


n=int(input())
a=list(map(int,input().split()))
if not (1<=n<=10**5):print(aaa)
if not (1<=min(a) and max(a)<=10**4):print(aaa)
if n!=len(a):print(aaa)
mod=998244353
print(pow(2,n-1,mod)*sum(a)%mod)
0