結果
問題 | No.1299 Random Array Score |
ユーザー |
![]() |
提出日時 | 2020-11-28 07:08:59 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 168 ms / 2,000 ms |
コード長 | 66 bytes |
コンパイル時間 | 292 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 26,496 KB |
最終ジャッジ日時 | 2024-09-12 22:04:18 |
合計ジャッジ時間 | 6,366 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 34 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
(n,k),a=$<.map{_1.split.map &:to_i}p a.sum*2.pow(k,m=998244353)%m