結果
問題 | No.657 テトラナッチ数列 Easy |
ユーザー | tanukidon |
提出日時 | 2018-03-22 19:56:38 |
言語 | Ruby (3.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 176 bytes |
コンパイル時間 | 97 ms |
コンパイル使用メモリ | 11,564 KB |
実行使用メモリ | 15,980 KB |
最終ジャッジ日時 | 2023-09-07 01:34:00 |
合計ジャッジ時間 | 2,412 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 81 ms
15,144 KB |
testcase_01 | AC | 82 ms
15,088 KB |
testcase_02 | AC | 82 ms
15,332 KB |
testcase_03 | AC | 82 ms
15,340 KB |
testcase_04 | RE | - |
testcase_05 | AC | 121 ms
15,980 KB |
testcase_06 | RE | - |
testcase_07 | AC | 83 ms
15,188 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| b << a[9+i]*2 - a[5+i] end end a.each do |i| p b[i] % 17 end