結果
| 問題 | No.236 鴛鴦茶 |
| コンテスト | |
| ユーザー |
t_murano
|
| 提出日時 | 2015-07-23 22:56:43 |
| 言語 | Crystal (1.19.1) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| + 397µs | |
| コード長 | 190 bytes |
| 記録 | |
| コンパイル時間 | 10,203 ms |
| コンパイル使用メモリ | 374,360 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-02 17:07:53 |
| 合計ジャッジ時間 | 11,221 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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