結果
| 問題 | No.2111 Sum of Diff |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-30 02:55:43 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 107,136 KB |
| 最終ジャッジ日時 | 2026-03-28 12:28:21 |
| 合計ジャッジ時間 | 2,224 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)