結果

問題 No.1581 Multiple Sequence
ユーザー yuruhiyayuruhiya
提出日時 2021-07-02 22:13:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 258 ms / 2,000 ms
コード長 78 bytes
コンパイル時間 710 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 23,360 KB
最終ジャッジ日時 2023-09-11 22:15:03
合計ジャッジ時間 6,401 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,280 KB
testcase_01 AC 85 ms
15,412 KB
testcase_02 AC 231 ms
21,288 KB
testcase_03 AC 243 ms
22,360 KB
testcase_04 AC 129 ms
16,628 KB
testcase_05 AC 246 ms
22,532 KB
testcase_06 AC 155 ms
18,156 KB
testcase_07 AC 124 ms
16,496 KB
testcase_08 AC 140 ms
17,280 KB
testcase_09 AC 228 ms
21,612 KB
testcase_10 AC 179 ms
18,688 KB
testcase_11 AC 102 ms
15,400 KB
testcase_12 AC 143 ms
17,816 KB
testcase_13 AC 84 ms
15,176 KB
testcase_14 AC 242 ms
22,216 KB
testcase_15 AC 197 ms
19,872 KB
testcase_16 AC 107 ms
15,516 KB
testcase_17 AC 253 ms
23,056 KB
testcase_18 AC 99 ms
15,372 KB
testcase_19 AC 219 ms
20,944 KB
testcase_20 AC 229 ms
21,304 KB
testcase_21 AC 236 ms
22,072 KB
testcase_22 AC 176 ms
18,400 KB
testcase_23 AC 258 ms
23,360 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

m=eval *$<
d=[1]*-~m
(2..m).map{|x|x.step(m,x){d[_1]+=d[x-1]}}
p d[m].%10**9+7
0