結果
問題 |
No.2111 Sum of Diff
|
ユーザー |
![]() |
提出日時 | 2022-10-28 21:43:46 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 111 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 82,432 KB |
実行使用メモリ | 105,344 KB |
最終ジャッジ日時 | 2024-07-06 00:49:38 |
合計ジャッジ時間 | 2,665 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 20 |
ソースコード
N = int(input()) A = list(map(int, input().split())) mod = 998244353 print((pow(2,N-1,mod)-1)*(A[0]-A[-1])%mod)