結果

問題 No.1299 Random Array Score
ユーザー simansiman
提出日時 2020-12-24 19:25:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 138 ms / 2,000 ms
コード長 107 bytes
コンパイル時間 418 ms
コンパイル使用メモリ 11,860 KB
実行使用メモリ 29,620 KB
最終ジャッジ日時 2023-10-21 15:47:50
合計ジャッジ時間 7,325 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
16,080 KB
testcase_01 AC 67 ms
16,080 KB
testcase_02 AC 68 ms
16,080 KB
testcase_03 AC 133 ms
29,316 KB
testcase_04 AC 130 ms
29,028 KB
testcase_05 AC 123 ms
26,068 KB
testcase_06 AC 124 ms
25,048 KB
testcase_07 AC 121 ms
25,432 KB
testcase_08 AC 132 ms
28,744 KB
testcase_09 AC 71 ms
16,132 KB
testcase_10 AC 96 ms
20,952 KB
testcase_11 AC 78 ms
17,068 KB
testcase_12 AC 111 ms
24,680 KB
testcase_13 AC 132 ms
28,528 KB
testcase_14 AC 119 ms
24,872 KB
testcase_15 AC 114 ms
25,060 KB
testcase_16 AC 113 ms
24,972 KB
testcase_17 AC 80 ms
17,636 KB
testcase_18 AC 96 ms
21,540 KB
testcase_19 AC 106 ms
22,752 KB
testcase_20 AC 87 ms
19,332 KB
testcase_21 AC 70 ms
16,080 KB
testcase_22 AC 81 ms
18,084 KB
testcase_23 AC 113 ms
24,876 KB
testcase_24 AC 117 ms
25,980 KB
testcase_25 AC 112 ms
24,864 KB
testcase_26 AC 74 ms
16,080 KB
testcase_27 AC 97 ms
18,364 KB
testcase_28 AC 103 ms
17,308 KB
testcase_29 AC 82 ms
18,664 KB
testcase_30 AC 111 ms
24,276 KB
testcase_31 AC 87 ms
19,008 KB
testcase_32 AC 133 ms
28,420 KB
testcase_33 AC 134 ms
29,620 KB
testcase_34 AC 126 ms
27,860 KB
testcase_35 AC 138 ms
29,620 KB
testcase_36 AC 131 ms
27,860 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

MOD = 998244353
N, K = gets.split.map(&:to_i)
A = gets.split.map(&:to_i)

puts 2.pow(K, MOD) * A.sum % MOD
0