結果

問題 No.657 テトラナッチ数列 Easy
ユーザー cielciel
提出日時 2017-11-26 20:01:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 287 ms / 2,000 ms
コード長 91 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 23,040 KB
最終ジャッジ日時 2024-05-05 13:50:42
合計ジャッジ時間 5,188 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 243 ms
22,400 KB
testcase_01 AC 239 ms
22,400 KB
testcase_02 AC 233 ms
22,272 KB
testcase_03 AC 242 ms
22,400 KB
testcase_04 AC 242 ms
22,528 KB
testcase_05 AC 282 ms
22,912 KB
testcase_06 AC 238 ms
22,400 KB
testcase_07 AC 238 ms
22,400 KB
testcase_08 AC 240 ms
22,528 KB
testcase_09 AC 274 ms
23,040 KB
testcase_10 AC 285 ms
22,912 KB
testcase_11 AC 286 ms
22,912 KB
testcase_12 AC 275 ms
22,912 KB
testcase_13 AC 277 ms
22,912 KB
testcase_14 AC 287 ms
23,040 KB
testcase_15 AC 277 ms
22,912 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

T=[0,0,0,0,1]
999999.times{T<<(T[-4]+T[-3]+T[-2]+T[-1])%17}
gets.to_i.times{p T[gets.to_i]}
0