結果

問題 No.1325 Subsequence Score
ユーザー yuruhiyayuruhiya
提出日時 2021-01-24 13:50:13
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 75 bytes
コンパイル時間 242 ms
コンパイル使用メモリ 11,448 KB
実行使用メモリ 58,436 KB
最終ジャッジ日時 2023-08-30 21:15:59
合計ジャッジ時間 12,675 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
14,984 KB
testcase_01 AC 81 ms
15,300 KB
testcase_02 AC 82 ms
15,228 KB
testcase_03 AC 83 ms
15,124 KB
testcase_04 AC 83 ms
15,252 KB
testcase_05 AC 83 ms
15,108 KB
testcase_06 AC 80 ms
15,072 KB
testcase_07 AC 84 ms
15,024 KB
testcase_08 AC 80 ms
15,024 KB
testcase_09 AC 81 ms
15,228 KB
testcase_10 AC 82 ms
15,252 KB
testcase_11 AC 82 ms
14,996 KB
testcase_12 AC 83 ms
15,092 KB
testcase_13 AC 610 ms
58,280 KB
testcase_14 AC 224 ms
27,312 KB
testcase_15 AC 521 ms
52,896 KB
testcase_16 AC 581 ms
57,592 KB
testcase_17 AC 289 ms
30,068 KB
testcase_18 AC 207 ms
23,788 KB
testcase_19 AC 626 ms
58,412 KB
testcase_20 AC 144 ms
19,976 KB
testcase_21 AC 263 ms
29,240 KB
testcase_22 AC 298 ms
29,952 KB
testcase_23 AC 617 ms
58,288 KB
testcase_24 AC 623 ms
58,168 KB
testcase_25 AC 616 ms
58,232 KB
testcase_26 AC 617 ms
58,436 KB
testcase_27 AC 620 ms
58,412 KB
testcase_28 RE -
testcase_29 AC 80 ms
15,252 KB
testcase_30 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
M=998244353
i=0
p gets.split.sum{2.pow(n-2,M)*_1.to_i*-~i+=1}%M
0