結果
問題 | No.657 テトラナッチ数列 Easy |
ユーザー | tanukidon |
提出日時 | 2018-03-22 19:55:48 |
言語 | Ruby (3.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 94 ms |
コンパイル使用メモリ | 11,456 KB |
実行使用メモリ | 15,844 KB |
最終ジャッジ日時 | 2023-09-07 01:33:48 |
合計ジャッジ時間 | 2,435 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
15,272 KB |
testcase_01 | AC | 81 ms
15,176 KB |
testcase_02 | AC | 81 ms
15,104 KB |
testcase_03 | AC | 82 ms
15,268 KB |
testcase_04 | RE | - |
testcase_05 | AC | 122 ms
15,844 KB |
testcase_06 | RE | - |
testcase_07 | AC | 84 ms
15,284 KB |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i a = [] n.times do a << gets.to_i end b=[nil,0,0,0,1,1,2,4,8,15] if a.max < 10 (a.max-9).times do |i| a << a[9+i]*2 - T[5+i] end end a.each do |i| p b[i] % 17 end