結果

問題 No.128 お年玉(1)
ユーザー thaim24thaim24
提出日時 2015-01-16 23:26:50
言語 Java19
(openjdk 19.0.1)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 295 bytes
コンパイル時間 1,828 ms
実行使用メモリ 37,608 KB
最終ジャッジ日時 2022-11-24 20:44:48
合計ジャッジ時間 4,860 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
37,308 KB
testcase_01 AC 83 ms
37,400 KB
testcase_02 AC 80 ms
37,548 KB
testcase_03 AC 77 ms
37,272 KB
testcase_04 AC 77 ms
37,360 KB
testcase_05 AC 78 ms
37,380 KB
testcase_06 AC 80 ms
37,480 KB
testcase_07 AC 79 ms
37,504 KB
testcase_08 AC 81 ms
37,480 KB
testcase_09 AC 81 ms
37,288 KB
testcase_10 AC 79 ms
37,296 KB
testcase_11 AC 83 ms
37,336 KB
testcase_12 AC 78 ms
37,364 KB
testcase_13 AC 78 ms
37,400 KB
testcase_14 AC 79 ms
37,520 KB
testcase_15 AC 79 ms
37,608 KB
testcase_16 AC 78 ms
37,404 KB
testcase_17 AC 81 ms
37,364 KB
testcase_18 AC 80 ms
37,408 KB
testcase_19 AC 80 ms
37,284 KB
testcase_20 AC 80 ms
37,368 KB
testcase_21 AC 80 ms
37,364 KB
testcase_22 AC 81 ms
37,288 KB
testcase_23 AC 80 ms
37,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

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

        long N = sc.nextLong();
        int M = sc.nextInt();

        long val = (N/M);
        val -= val%1000;

        System.out.println(val);
    }
}
0