結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 155 ms
17,536 KB
testcase_01 AC 159 ms
12,288 KB
testcase_02 AC 153 ms
12,288 KB
testcase_03 AC 154 ms
12,288 KB
testcase_04 AC 154 ms
12,160 KB
testcase_05 AC 161 ms
12,288 KB
testcase_06 AC 162 ms
12,288 KB
testcase_07 AC 162 ms
12,288 KB
testcase_08 AC 162 ms
12,416 KB
testcase_09 AC 168 ms
12,416 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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