結果

問題 No.658 テトラナッチ数列 Hard
ユーザー letrangerjpletrangerjp
提出日時 2018-03-02 23:38:07
言語 Ruby
(3.3.0)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 84 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 11,488 KB
実行使用メモリ 16,188 KB
最終ジャッジ日時 2023-09-04 14:46:45
合計ジャッジ時間 2,408 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,208 KB
testcase_01 AC 83 ms
15,132 KB
testcase_02 AC 84 ms
15,216 KB
testcase_03 AC 83 ms
15,248 KB
testcase_04 AC 123 ms
15,904 KB
testcase_05 AC 123 ms
15,972 KB
testcase_06 AC 124 ms
16,036 KB
testcase_07 AC 124 ms
16,072 KB
testcase_08 AC 124 ms
15,872 KB
testcase_09 AC 125 ms
16,092 KB
testcase_10 AC 123 ms
16,188 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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