結果
問題 | No.1581 Multiple Sequence |
ユーザー |
![]() |
提出日時 | 2021-07-02 22:09:36 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 78 bytes |
コンパイル時間 | 381 ms |
コンパイル使用メモリ | 7,296 KB |
実行使用メモリ | 13,952 KB |
最終ジャッジ日時 | 2024-06-29 11:44:03 |
合計ジャッジ時間 | 6,906 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 15 |
コンパイルメッセージ
Main.rb:1: warning: `*' interpreted as argument prefix Syntax OK
ソースコード
n=eval *$<d=[1]*-~n(2..n).map{|i|i.step(n,i){d[_1]+=d[i-1]%=10**9+7}}p d[n]