結果

問題 No.658 テトラナッチ数列 Hard
ユーザー letrangerjpletrangerjp
提出日時 2018-03-02 23:42:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 83 bytes
コンパイル時間 707 ms
コンパイル使用メモリ 11,152 KB
実行使用メモリ 15,968 KB
最終ジャッジ日時 2023-09-04 15:32:43
合計ジャッジ時間 3,785 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,240 KB
testcase_01 AC 82 ms
15,244 KB
testcase_02 AC 80 ms
15,296 KB
testcase_03 AC 82 ms
15,080 KB
testcase_04 AC 121 ms
15,844 KB
testcase_05 AC 122 ms
15,848 KB
testcase_06 AC 124 ms
15,900 KB
testcase_07 AC 124 ms
15,932 KB
testcase_08 AC 133 ms
15,892 KB
testcase_09 AC 122 ms
15,968 KB
testcase_10 AC 124 ms
15,952 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
*r=0,0,0,a=1
5000.times{|i|a=a-r[i]+r[i+4]=a%17};$<.map{|n|p r[~-n.to_i%4912]}
0