結果

問題 No.445 得点
ユーザー kenji_shioyakenji_shioya
提出日時 2017-01-07 14:28:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 464 bytes
コンパイル時間 3,815 ms
コンパイル使用メモリ 73,240 KB
実行使用メモリ 58,172 KB
最終ジャッジ日時 2023-09-12 09:37:25
合計ジャッジ時間 7,397 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
56,004 KB
testcase_01 AC 129 ms
56,196 KB
testcase_02 AC 128 ms
55,868 KB
testcase_03 AC 128 ms
56,004 KB
testcase_04 AC 128 ms
55,740 KB
testcase_05 AC 128 ms
55,892 KB
testcase_06 AC 128 ms
56,428 KB
testcase_07 AC 128 ms
56,000 KB
testcase_08 AC 128 ms
55,860 KB
testcase_09 AC 129 ms
58,172 KB
testcase_10 AC 128 ms
53,980 KB
testcase_11 AC 127 ms
55,944 KB
testcase_12 AC 128 ms
53,976 KB
testcase_13 AC 127 ms
56,392 KB
testcase_14 AC 127 ms
54,464 KB
testcase_15 AC 128 ms
56,216 KB
testcase_16 AC 128 ms
54,084 KB
testcase_17 AC 127 ms
55,676 KB
testcase_18 AC 127 ms
56,112 KB
testcase_19 AC 128 ms
56,172 KB
testcase_20 AC 128 ms
55,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Point {
  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);

    int a = sc.nextInt();
    BigDecimal b = new BigDecimal(sc.next());
    BigDecimal c = new BigDecimal("0.8");
    BigDecimal d = new BigDecimal("0.2");
    BigDecimal e = new BigDecimal(50*a);


    System.out.println(a * 50 + e.divide(c.add(d.multiply(b)), 0, BigDecimal.ROUND_FLOOR).intValue());
  }
}
0