結果
| 問題 |
No.2111 Sum of Diff
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-30 02:55:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 158 bytes |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 82,428 KB |
| 実行使用メモリ | 106,072 KB |
| 最終ジャッジ日時 | 2024-07-06 22:25:46 |
| 合計ジャッジ時間 | 2,784 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | WA * 20 |
ソースコード
#yuki2110 mod = 998244353 N = int(input()) A = list(map(int, input().split())) ans = A[0] * (pow(2,N-1,mod) - 1) - A[-1] * (pow(2,N-1,mod) - 1) print(ans%mod)