結果

問題 No.555 世界史のレポート
ユーザー cielciel
提出日時 2017-08-12 14:18:49
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 97 bytes
コンパイル時間 124 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 14,976 KB
最終ジャッジ日時 2024-04-21 06:14:28
合計ジャッジ時間 8,140 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
12,032 KB
testcase_01 AC 81 ms
12,160 KB
testcase_02 AC 76 ms
12,288 KB
testcase_03 AC 80 ms
12,288 KB
testcase_04 AC 83 ms
12,288 KB
testcase_05 AC 81 ms
12,288 KB
testcase_06 AC 80 ms
12,160 KB
testcase_07 AC 82 ms
12,160 KB
testcase_08 AC 90 ms
12,288 KB
testcase_09 AC 89 ms
12,288 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def f a,b
return a<N ? [f(2*a,a)+C,f(a+b,b)].min+V : C
end
N,C,V=$<.read.split.map &:to_i
p f 1,1
0