結果

問題 No.445 得点
ユーザー fjafjafjafjafjafja
提出日時 2017-09-10 17:07:30
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 567 bytes
コンパイル時間 4,027 ms
コンパイル使用メモリ 75,476 KB
実行使用メモリ 41,880 KB
最終ジャッジ日時 2024-04-25 03:08:04
合計ジャッジ時間 6,832 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
41,592 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 133 ms
41,520 KB
testcase_13 WA -
testcase_14 AC 107 ms
40,452 KB
testcase_15 AC 104 ms
40,444 KB
testcase_16 AC 113 ms
41,648 KB
testcase_17 AC 127 ms
41,616 KB
testcase_18 AC 122 ms
41,480 KB
testcase_19 AC 114 ms
41,540 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.math.BigDecimal;
import java.util.Scanner;

public class N445 {

	public static void main(String[] args)
	{
		Scanner sc=new Scanner(System.in);
		int A=sc.nextInt(),B=sc.nextInt();
		BigDecimal aa=new BigDecimal(A);
		BigDecimal bb=new BigDecimal(B);
		BigDecimal a=new BigDecimal(0.8);
		BigDecimal b=new BigDecimal(0.2);
		BigDecimal a5=new BigDecimal(50);


		BigDecimal ans=a5.multiply(aa).divide((a.add(b.multiply(bb))),0,BigDecimal.ROUND_CEILING);
		BigDecimal disp=ans.add(a5.multiply(aa));
		System.out.println(disp);
		
	}

}
0