結果

問題 No.445 得点
ユーザー kumatakokumatako
提出日時 2016-12-06 01:42:56
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 811 bytes
コンパイル時間 1,850 ms
コンパイル使用メモリ 75,124 KB
実行使用メモリ 41,644 KB
最終ジャッジ日時 2024-05-05 21:26:27
合計ジャッジ時間 5,007 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 112 ms
41,064 KB
testcase_02 AC 110 ms
41,548 KB
testcase_03 AC 103 ms
40,264 KB
testcase_04 AC 105 ms
40,200 KB
testcase_05 AC 116 ms
41,460 KB
testcase_06 AC 116 ms
41,644 KB
testcase_07 AC 112 ms
40,160 KB
testcase_08 AC 120 ms
41,584 KB
testcase_09 AC 120 ms
41,456 KB
testcase_10 AC 120 ms
41,136 KB
testcase_11 AC 112 ms
41,132 KB
testcase_12 WA -
testcase_13 AC 115 ms
41,584 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 106 ms
40,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.BigDecimal;

class Main{
    public static void main(String[]args)throws Exception{
        Scanner sc = new Scanner(System.in);
        int a,b;
        a = sc.nextInt();
        b = sc.nextInt();
        BigDecimal biga = new BigDecimal(a);
        BigDecimal bigb = new BigDecimal(b);
        BigDecimal ei = new BigDecimal(0.8);
        BigDecimal two = new BigDecimal(0.2);
        BigDecimal fif = new BigDecimal(50);
        BigDecimal good = two.multiply(bigb);
        BigDecimal great = ei.add(good);
        BigDecimal yeah = fif.multiply(biga);
        BigDecimal amazing = yeah.divide(great,0,BigDecimal.ROUND_DOWN);
        BigDecimal answer = yeah.add(amazing);
        
        System.out.println(answer);
        
        
        
        
        
    }
}
0