結果
| 問題 | No.2062 Sum of Subset mod 999630629 |
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 20:22:53 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 207 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 97,792 KB |
| 最終ジャッジ日時 | 2026-07-12 00:24:13 |
| 合計ジャッジ時間 | 4,107 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 WA * 24 |
ソースコード
MOD = 999630629 mod2 = 998244353 n = int(input()) A = list(map(int, input().split())) sum_A = sum(A) % MOD # sum_A_mod pow_2 = pow(2, n-1, MOD) sum_f = (sum_A * pow_2) % MOD ans = sum_f % mod2 print(ans)
gew1fw