結果

問題 No.1299 Random Array Score
ユーザー ああいい
提出日時 2022-01-14 19:26:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 387 ms
コンパイル使用メモリ 82,332 KB
実行使用メモリ 107,264 KB
最終ジャッジ日時 2024-11-19 15:06:26
合計ジャッジ時間 4,991 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 3 WA * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = list(map(int,input().split()))

P = 998244353
ans = sum(A)*(1 + K * (K + 1)//2) % P
print(ans)
0