結果

問題 No.657 テトラナッチ数列 Easy
ユーザー cympfhcympfh
提出日時 2018-03-02 22:32:03
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 125 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 18,408 KB
最終ジャッジ日時 2023-09-03 23:14:05
合計ジャッジ時間 3,117 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 96 ms
18,188 KB
testcase_01 AC 93 ms
18,296 KB
testcase_02 AC 93 ms
18,100 KB
testcase_03 AC 91 ms
18,380 KB
testcase_04 AC 92 ms
18,096 KB
testcase_05 AC 129 ms
18,224 KB
testcase_06 AC 92 ms
18,100 KB
testcase_07 AC 94 ms
18,200 KB
testcase_08 AC 92 ms
18,136 KB
testcase_09 AC 131 ms
18,288 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 130 ms
18,200 KB
testcase_14 WA -
testcase_15 AC 132 ms
18,316 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b,c,d=0,0,0,1
rs = [0]
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