結果

問題 No.1299 Random Array Score
ユーザー slyly1373slyly1373
提出日時 2020-11-27 22:43:14
言語 Ruby
(3.3.0)
結果
AC  
実行時間 136 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 11,492 KB
実行使用メモリ 28,736 KB
最終ジャッジ日時 2023-10-09 20:46:35
合計ジャッジ時間 5,870 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
15,172 KB
testcase_01 AC 64 ms
15,032 KB
testcase_02 AC 64 ms
15,248 KB
testcase_03 AC 130 ms
28,324 KB
testcase_04 AC 128 ms
27,800 KB
testcase_05 AC 122 ms
25,096 KB
testcase_06 AC 114 ms
24,252 KB
testcase_07 AC 122 ms
24,448 KB
testcase_08 AC 132 ms
27,712 KB
testcase_09 AC 67 ms
15,408 KB
testcase_10 AC 91 ms
20,176 KB
testcase_11 AC 74 ms
16,228 KB
testcase_12 AC 110 ms
23,808 KB
testcase_13 AC 129 ms
27,660 KB
testcase_14 AC 110 ms
24,028 KB
testcase_15 AC 113 ms
24,112 KB
testcase_16 AC 112 ms
24,140 KB
testcase_17 AC 77 ms
16,752 KB
testcase_18 AC 96 ms
20,568 KB
testcase_19 AC 103 ms
21,808 KB
testcase_20 AC 84 ms
18,660 KB
testcase_21 AC 68 ms
15,100 KB
testcase_22 AC 79 ms
17,016 KB
testcase_23 AC 110 ms
24,140 KB
testcase_24 AC 124 ms
25,168 KB
testcase_25 AC 116 ms
24,016 KB
testcase_26 AC 69 ms
15,248 KB
testcase_27 AC 78 ms
17,004 KB
testcase_28 AC 74 ms
16,440 KB
testcase_29 AC 81 ms
17,632 KB
testcase_30 AC 113 ms
23,488 KB
testcase_31 AC 85 ms
18,064 KB
testcase_32 AC 129 ms
27,520 KB
testcase_33 AC 136 ms
28,736 KB
testcase_34 AC 122 ms
26,840 KB
testcase_35 AC 128 ms
28,636 KB
testcase_36 AC 124 ms
27,120 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,k = gets.split.map(&:to_i)
a = gets.split.map(&:to_i)
v = (a.sum)*(2.pow(k,998244353))%998244353
puts v%998244353
0