結果

問題 No.658 テトラナッチ数列 Hard
ユーザー cympfhcympfh
提出日時 2018-03-03 00:38:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 99 bytes
コンパイル時間 947 ms
コンパイル使用メモリ 11,176 KB
実行使用メモリ 18,416 KB
最終ジャッジ日時 2023-09-05 04:51:22
合計ジャッジ時間 3,739 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
18,220 KB
testcase_01 AC 104 ms
18,416 KB
testcase_02 AC 103 ms
18,168 KB
testcase_03 AC 102 ms
18,392 KB
testcase_04 AC 144 ms
18,292 KB
testcase_05 AC 140 ms
18,400 KB
testcase_06 AC 141 ms
18,252 KB
testcase_07 AC 142 ms
18,184 KB
testcase_08 AC 145 ms
18,252 KB
testcase_09 AC 144 ms
18,184 KB
testcase_10 AC 144 ms
18,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,c,d=0,0,0,1
*r=1;5000.times{r<<a%17;a,b,c,d=b,c,d,a+b+c+d};gets.to_i.times{p r[gets.to_i%4912]}
0