結果

問題 No.1299 Random Array Score
ユーザー yuruhiyayuruhiya
提出日時 2020-11-28 07:08:59
言語 Ruby
(3.2.2)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 66 bytes
コンパイル時間 50 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 28,916 KB
最終ジャッジ日時 2023-10-09 23:32:32
合計ジャッジ時間 6,816 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,128 KB
testcase_01 AC 79 ms
15,244 KB
testcase_02 AC 78 ms
15,180 KB
testcase_03 AC 155 ms
28,552 KB
testcase_04 AC 152 ms
27,892 KB
testcase_05 AC 137 ms
25,076 KB
testcase_06 AC 131 ms
24,324 KB
testcase_07 AC 135 ms
24,712 KB
testcase_08 AC 154 ms
27,940 KB
testcase_09 AC 79 ms
15,368 KB
testcase_10 AC 108 ms
20,352 KB
testcase_11 AC 88 ms
16,348 KB
testcase_12 AC 130 ms
23,888 KB
testcase_13 AC 146 ms
27,752 KB
testcase_14 AC 129 ms
23,840 KB
testcase_15 AC 146 ms
24,076 KB
testcase_16 AC 128 ms
24,240 KB
testcase_17 AC 91 ms
16,720 KB
testcase_18 AC 109 ms
20,528 KB
testcase_19 AC 124 ms
21,976 KB
testcase_20 AC 103 ms
18,724 KB
testcase_21 AC 80 ms
15,156 KB
testcase_22 AC 92 ms
16,908 KB
testcase_23 AC 130 ms
24,100 KB
testcase_24 AC 136 ms
25,252 KB
testcase_25 AC 127 ms
24,088 KB
testcase_26 AC 80 ms
15,272 KB
testcase_27 AC 92 ms
17,132 KB
testcase_28 AC 88 ms
16,624 KB
testcase_29 AC 97 ms
17,612 KB
testcase_30 AC 131 ms
23,512 KB
testcase_31 AC 98 ms
18,152 KB
testcase_32 AC 153 ms
27,536 KB
testcase_33 AC 158 ms
28,916 KB
testcase_34 AC 154 ms
27,084 KB
testcase_35 AC 159 ms
28,660 KB
testcase_36 AC 142 ms
26,896 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

(n,k),a=$<.map{_1.split.map &:to_i}
p a.sum*2.pow(k,m=998244353)%m
0