結果
| 問題 |
No.236 鴛鴦茶
|
| コンテスト | |
| ユーザー |
t_murano
|
| 提出日時 | 2015-07-23 22:56:43 |
| 言語 | Crystal (1.14.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 190 bytes |
| コンパイル時間 | 16,321 ms |
| コンパイル使用メモリ | 333,772 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 18:39:02 |
| 合計ジャッジ時間 | 17,412 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
if input = gets
a, b, x, y = input.chomp.split.map{|s| s.to_i}
if x * b >= a * y
result = y + y * a / b.to_f
else
result = x + x * b / a.to_f
end
puts "%.7f" % result
end
t_murano