結果
問題 | No.236 鴛鴦茶 |
ユーザー |
![]() |
提出日時 | 2016-12-10 08:24:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 147 ms / 2,000 ms |
コード長 | 416 bytes |
コンパイル時間 | 3,400 ms |
コンパイル使用メモリ | 74,164 KB |
実行使用メモリ | 42,104 KB |
最終ジャッジ日時 | 2024-06-28 13:09:30 |
合計ジャッジ時間 | 7,748 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
import java.util.Scanner; public class Sample2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); double rateCoffee = sc.nextDouble(); double rateTea = sc.nextDouble(); double coffee = sc.nextDouble(); double tea = sc.nextDouble(); System.out.println((rateCoffee + rateTea) * Math.min(coffee/rateCoffee, tea/rateTea)); } }