結果

問題 No.453 製薬会社
ユーザー fal_rndfal_rnd
提出日時 2016-12-06 22:55:47
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 341 bytes
コンパイル時間 3,345 ms
コンパイル使用メモリ 71,088 KB
実行使用メモリ 56,256 KB
最終ジャッジ日時 2023-08-18 19:40:00
合計ジャッジ時間 4,725 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
53,592 KB
testcase_01 AC 117 ms
55,916 KB
testcase_02 AC 116 ms
56,176 KB
testcase_03 AC 116 ms
55,868 KB
testcase_04 AC 116 ms
56,164 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 119 ms
55,536 KB
testcase_08 WA -
testcase_09 AC 119 ms
56,180 KB
testcase_10 AC 116 ms
55,892 KB
testcase_11 AC 121 ms
56,256 KB
testcase_12 AC 114 ms
56,112 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*3500.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