結果

問題 No.128 お年玉(1)
ユーザー yagi2yagi2
提出日時 2017-04-24 19:11:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 381 bytes
コンパイル時間 2,213 ms
コンパイル使用メモリ 74,204 KB
実行使用メモリ 58,092 KB
最終ジャッジ日時 2024-04-08 19:06:21
合計ジャッジ時間 6,465 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
56,240 KB
testcase_01 AC 133 ms
57,692 KB
testcase_02 AC 133 ms
57,944 KB
testcase_03 AC 136 ms
57,944 KB
testcase_04 AC 135 ms
57,820 KB
testcase_05 AC 137 ms
58,072 KB
testcase_06 AC 133 ms
57,944 KB
testcase_07 AC 134 ms
57,956 KB
testcase_08 AC 136 ms
57,800 KB
testcase_09 AC 137 ms
58,092 KB
testcase_10 AC 138 ms
57,964 KB
testcase_11 AC 136 ms
57,976 KB
testcase_12 AC 140 ms
56,124 KB
testcase_13 AC 135 ms
57,944 KB
testcase_14 AC 138 ms
57,956 KB
testcase_15 AC 135 ms
57,700 KB
testcase_16 AC 138 ms
57,712 KB
testcase_17 AC 137 ms
57,680 KB
testcase_18 AC 137 ms
57,696 KB
testcase_19 AC 137 ms
57,916 KB
testcase_20 AC 144 ms
57,708 KB
testcase_21 AC 139 ms
57,848 KB
testcase_22 AC 135 ms
58,064 KB
testcase_23 AC 136 ms
58,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        BigInteger N = new BigInteger(sc.next());
        BigInteger M = new BigInteger(sc.next());

        System.out.println(N.divide(M).divide(new BigInteger("1000")).multiply(new BigInteger("1000")));
    }
}
0