結果

問題 No.453 製薬会社
ユーザー koba-e964koba-e964
提出日時 2016-12-04 00:23:36
言語 Ruby
(3.3.0)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 143 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 15,276 KB
最終ジャッジ日時 2023-08-27 06:43:18
合計ジャッジ時間 1,972 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
15,032 KB
testcase_01 AC 81 ms
15,092 KB
testcase_02 AC 83 ms
15,084 KB
testcase_03 AC 77 ms
15,236 KB
testcase_04 AC 76 ms
15,224 KB
testcase_05 AC 75 ms
15,088 KB
testcase_06 AC 82 ms
15,080 KB
testcase_07 AC 76 ms
15,228 KB
testcase_08 AC 72 ms
15,068 KB
testcase_09 AC 73 ms
15,112 KB
testcase_10 AC 71 ms
15,276 KB
testcase_11 AC 73 ms
15,104 KB
testcase_12 AC 76 ms
15,212 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

c,d=gets.split.map &:to_f
a=(20*c-8*d)/13
b=7*(3*d-c)/13
if a<0
  puts 7000*c
  exit 0
end
if b<0
  puts 4000*d
  exit 0
end
puts 1000*(a+2*b)
0