結果

問題 No.657 テトラナッチ数列 Easy
ユーザー cympfhcympfh
提出日時 2018-03-02 22:33:52
言語 Ruby
(3.3.0)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 103 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 18,340 KB
最終ジャッジ日時 2023-09-03 23:19:32
合計ジャッジ時間 2,944 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
18,204 KB
testcase_01 AC 92 ms
18,304 KB
testcase_02 AC 92 ms
18,320 KB
testcase_03 AC 91 ms
18,240 KB
testcase_04 AC 91 ms
18,116 KB
testcase_05 AC 131 ms
18,324 KB
testcase_06 AC 91 ms
18,328 KB
testcase_07 AC 91 ms
18,068 KB
testcase_08 AC 91 ms
18,260 KB
testcase_09 AC 131 ms
18,216 KB
testcase_10 AC 131 ms
18,104 KB
testcase_11 AC 132 ms
18,248 KB
testcase_12 AC 131 ms
18,184 KB
testcase_13 AC 131 ms
18,324 KB
testcase_14 AC 130 ms
18,164 KB
testcase_15 AC 131 ms
18,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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