結果

問題 No.954 Result
ユーザー maimai
提出日時 2019-12-17 00:49:57
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 180 bytes
コンパイル時間 220 ms
コンパイル使用メモリ 11,532 KB
実行使用メモリ 15,416 KB
最終ジャッジ日時 2023-09-15 19:00:31
合計ジャッジ時間 4,641 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,348 KB
testcase_01 AC 78 ms
15,100 KB
testcase_02 AC 79 ms
15,244 KB
testcase_03 RE -
testcase_04 AC 78 ms
15,220 KB
testcase_05 RE -
testcase_06 AC 78 ms
15,140 KB
testcase_07 AC 78 ms
15,324 KB
testcase_08 AC 78 ms
15,024 KB
testcase_09 AC 78 ms
15,288 KB
testcase_10 RE -
testcase_11 AC 78 ms
15,028 KB
testcase_12 AC 78 ms
15,104 KB
testcase_13 AC 78 ms
15,232 KB
testcase_14 RE -
testcase_15 AC 78 ms
15,232 KB
testcase_16 AC 78 ms
15,064 KB
testcase_17 RE -
testcase_18 AC 79 ms
15,316 KB
testcase_19 AC 79 ms
15,272 KB
testcase_20 AC 77 ms
15,220 KB
testcase_21 AC 79 ms
15,232 KB
testcase_22 AC 79 ms
15,208 KB
testcase_23 AC 77 ms
15,336 KB
testcase_24 RE -
testcase_25 AC 78 ms
15,216 KB
testcase_26 AC 78 ms
15,312 KB
testcase_27 AC 79 ms
15,172 KB
testcase_28 AC 77 ms
15,360 KB
testcase_29 AC 77 ms
15,024 KB
testcase_30 AC 77 ms
15,280 KB
testcase_31 AC 77 ms
15,100 KB
testcase_32 AC 77 ms
15,264 KB
testcase_33 RE -
testcase_34 AC 78 ms
15,216 KB
testcase_35 AC 78 ms
15,132 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

li = 5.times.map{gets.to_i}.reverse
fb = (1..99).reduce([1,1]){|s,e| s << s[-1]+s[-2];s}.take_while{|e| e <= 10**15}
p 5.times.select{|r| fb.each_cons(r+1).include? li[0..r]}.max+1
0