結果
問題 | No.657 テトラナッチ数列 Easy |
ユーザー | 0918nobita |
提出日時 | 2018-03-19 09:11:25 |
言語 | Ruby (3.3.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 72 ms |
コンパイル使用メモリ | 11,288 KB |
実行使用メモリ | 816,716 KB |
最終ジャッジ日時 | 2023-08-30 03:33:19 |
合計ジャッジ時間 | 3,645 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
15,072 KB |
testcase_01 | AC | 83 ms
15,144 KB |
testcase_02 | AC | 84 ms
15,076 KB |
testcase_03 | AC | 84 ms
15,260 KB |
testcase_04 | MLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
コンパイルメッセージ
Syntax OK
ソースコード
Q = gets.to_i T = [0, 0, 0, 1] n = [] 1.upto(Q) { n.push(gets.to_i) } 5.upto(n.max) {|i| T.push(T[i - 2] + T[i - 3] + T[i - 4] + T[i - 5]) } n.each {|ni| puts T[ni - 1] % 17 }