結果

問題 No.657 テトラナッチ数列 Easy
ユーザー cympfhcympfh
提出日時 2018-03-02 22:33:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 125 bytes
コンパイル時間 730 ms
コンパイル使用メモリ 11,120 KB
実行使用メモリ 18,436 KB
最終ジャッジ日時 2023-09-03 23:16:33
合計ジャッジ時間 3,547 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
18,212 KB
testcase_01 AC 92 ms
18,072 KB
testcase_02 AC 92 ms
18,292 KB
testcase_03 AC 92 ms
18,212 KB
testcase_04 AC 91 ms
18,364 KB
testcase_05 AC 132 ms
18,288 KB
testcase_06 AC 91 ms
18,184 KB
testcase_07 AC 93 ms
18,356 KB
testcase_08 AC 91 ms
18,324 KB
testcase_09 AC 130 ms
18,168 KB
testcase_10 AC 130 ms
18,164 KB
testcase_11 AC 130 ms
18,212 KB
testcase_12 AC 131 ms
18,436 KB
testcase_13 AC 130 ms
18,192 KB
testcase_14 AC 132 ms
18,072 KB
testcase_15 AC 132 ms
18,196 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,c,d=0,0,0,1
rs = [1]
5000.times do |i|
  rs << a % 17
  a,b,c,d=b,c,d,(a+b+c+d)
end
gets.to_i.times{p rs[gets.to_i%4912]}
0