結果

問題 No.858 わり算
ユーザー rabirabi
提出日時 2019-08-15 14:23:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 522 bytes
コンパイル時間 3,317 ms
コンパイル使用メモリ 75,132 KB
実行使用メモリ 54,000 KB
最終ジャッジ日時 2023-10-19 19:01:26
合計ジャッジ時間 4,153 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
54,000 KB
testcase_01 AC 61 ms
52,828 KB
testcase_02 AC 58 ms
52,856 KB
testcase_03 AC 59 ms
53,988 KB
testcase_04 AC 59 ms
53,976 KB
testcase_05 AC 58 ms
53,008 KB
testcase_06 AC 59 ms
52,864 KB
testcase_07 AC 58 ms
53,988 KB
testcase_08 AC 58 ms
53,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigDecimal;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

class Main { 
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] ary = br.readLine().split(" ");
        
        BigDecimal a = new BigDecimal(ary[0]);
		BigDecimal b = new BigDecimal(ary[1]);
		System.out.println(a.divide(b, 50, BigDecimal.ROUND_DOWN).toPlainString());
        
    }
}
0