結果

問題 No.128 お年玉(1)
ユーザー thaim24
提出日時 2015-01-16 23:26:50
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 5,000 ms
コード長 295 bytes
コンパイル時間 2,053 ms
コンパイル使用メモリ 74,512 KB
実行使用メモリ 54,236 KB
最終ジャッジ日時 2024-10-01 09:43:23
合計ジャッジ時間 6,125 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

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