結果

問題 No.445 得点
ユーザー kumatakokumatako
提出日時 2016-12-07 01:19:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 809 bytes
コンパイル時間 3,504 ms
コンパイル使用メモリ 71,920 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-09-12 08:32:08
合計ジャッジ時間 5,949 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,000 KB
testcase_01 AC 121 ms
55,916 KB
testcase_02 AC 122 ms
55,968 KB
testcase_03 AC 124 ms
55,924 KB
testcase_04 AC 125 ms
55,660 KB
testcase_05 AC 123 ms
56,128 KB
testcase_06 AC 123 ms
55,788 KB
testcase_07 AC 124 ms
55,772 KB
testcase_08 AC 124 ms
55,624 KB
testcase_09 AC 125 ms
55,944 KB
testcase_10 AC 124 ms
55,960 KB
testcase_11 AC 123 ms
55,968 KB
testcase_12 AC 123 ms
55,936 KB
testcase_13 AC 123 ms
56,516 KB
testcase_14 AC 122 ms
55,740 KB
testcase_15 AC 123 ms
56,084 KB
testcase_16 AC 123 ms
56,352 KB
testcase_17 AC 125 ms
55,928 KB
testcase_18 AC 122 ms
55,860 KB
testcase_19 AC 123 ms
56,228 KB
testcase_20 AC 122 ms
56,184 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_FLOOR);
        BigDecimal answer = yeah.add(amazing);
        
        System.out.println(answer);
        
        
        
        
    }
}
0