結果

問題 No.555 世界史のレポート
ユーザー cielciel
提出日時 2017-08-17 08:06:54
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 106 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 25,856 KB
最終ジャッジ日時 2024-04-21 15:27:56
合計ジャッジ時間 3,833 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
12,160 KB
testcase_01 AC 82 ms
12,160 KB
testcase_02 AC 78 ms
12,416 KB
testcase_03 AC 82 ms
12,288 KB
testcase_04 AC 85 ms
12,288 KB
testcase_05 AC 84 ms
12,288 KB
testcase_06 AC 85 ms
12,544 KB
testcase_07 AC 87 ms
12,544 KB
testcase_08 AC 89 ms
12,800 KB
testcase_09 AC 87 ms
12,928 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 #

M={}
def f a,b
M[[a,b]]||=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