結果

問題 No.555 世界史のレポート
ユーザー cielciel
提出日時 2021-05-12 02:31:22
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 168 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 11,872 KB
実行使用メモリ 72,472 KB
最終ジャッジ日時 2023-10-22 07:27:54
合計ジャッジ時間 15,878 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 171 ms
16,192 KB
testcase_01 AC 171 ms
16,192 KB
testcase_02 AC 175 ms
16,192 KB
testcase_03 AC 192 ms
16,352 KB
testcase_04 AC 193 ms
16,352 KB
testcase_05 AC 191 ms
16,352 KB
testcase_06 AC 194 ms
16,376 KB
testcase_07 AC 197 ms
16,408 KB
testcase_08 AC 197 ms
16,560 KB
testcase_09 AC 192 ms
16,572 KB
testcase_10 AC 1,092 ms
53,652 KB
testcase_11 RE -
testcase_12 AC 1,089 ms
53,408 KB
testcase_13 AC 921 ms
49,972 KB
testcase_14 AC 1,122 ms
55,732 KB
testcase_15 RE -
testcase_16 AC 972 ms
51,148 KB
testcase_17 AC 1,046 ms
55,220 KB
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

ENV[Z='RUBY_THREAD_VM_STACK_SIZE']||exec({Z=>?5*7},'ruby',$0)
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