結果

問題 No.453 製薬会社
ユーザー fal_rndfal_rnd
提出日時 2016-12-06 22:56:27
言語 Java19
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 5,446 ms
コンパイル使用メモリ 71,528 KB
実行使用メモリ 55,848 KB
最終ジャッジ日時 2023-08-18 19:40:49
合計ジャッジ時間 5,006 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
55,680 KB
testcase_01 AC 129 ms
55,584 KB
testcase_02 AC 132 ms
55,528 KB
testcase_03 AC 133 ms
55,564 KB
testcase_04 AC 132 ms
55,664 KB
testcase_05 AC 134 ms
55,436 KB
testcase_06 AC 130 ms
55,376 KB
testcase_07 AC 131 ms
55,636 KB
testcase_08 AC 131 ms
55,636 KB
testcase_09 AC 130 ms
55,848 KB
testcase_10 AC 132 ms
55,364 KB
testcase_11 AC 130 ms
55,592 KB
testcase_12 AC 131 ms
55,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package src;

import java.util.*;
class C{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		int c=s.nextInt(),d=s.nextInt();
		if(c*5<=2*d)
			System.out.printf("%.10f",c*7000.0);
		else if(3*d<=c)
			System.out.printf("%.10f",d*4000.0);
		else
			System.out.printf("%.10f",(c*6000+d*34000)/13.0);
	}
}
0