結果

問題 No.1325 Subsequence Score
ユーザー yuruhiyayuruhiya
提出日時 2021-01-24 13:55:25
言語 Ruby
(3.3.0)
結果
AC  
実行時間 710 ms / 2,000 ms
コード長 85 bytes
コンパイル時間 719 ms
コンパイル使用メモリ 11,308 KB
実行使用メモリ 58,460 KB
最終ジャッジ日時 2023-08-30 21:21:53
合計ジャッジ時間 11,085 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,216 KB
testcase_01 AC 78 ms
15,096 KB
testcase_02 AC 78 ms
15,156 KB
testcase_03 AC 81 ms
15,352 KB
testcase_04 AC 80 ms
15,032 KB
testcase_05 AC 82 ms
15,248 KB
testcase_06 AC 80 ms
15,000 KB
testcase_07 AC 80 ms
15,300 KB
testcase_08 AC 77 ms
15,048 KB
testcase_09 AC 77 ms
15,100 KB
testcase_10 AC 79 ms
15,000 KB
testcase_11 AC 80 ms
15,352 KB
testcase_12 AC 81 ms
15,272 KB
testcase_13 AC 693 ms
58,100 KB
testcase_14 AC 247 ms
27,220 KB
testcase_15 AC 596 ms
52,752 KB
testcase_16 AC 665 ms
57,900 KB
testcase_17 AC 327 ms
29,852 KB
testcase_18 AC 225 ms
23,960 KB
testcase_19 AC 710 ms
58,252 KB
testcase_20 AC 154 ms
19,856 KB
testcase_21 AC 286 ms
29,172 KB
testcase_22 AC 336 ms
29,960 KB
testcase_23 AC 695 ms
58,176 KB
testcase_24 AC 693 ms
58,280 KB
testcase_25 AC 698 ms
58,460 KB
testcase_26 AC 692 ms
58,424 KB
testcase_27 AC 690 ms
58,352 KB
testcase_28 AC 77 ms
15,196 KB
testcase_29 AC 77 ms
15,044 KB
testcase_30 AC 76 ms
15,108 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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