結果

問題 No.128 お年玉(1)
ユーザー spaciaspacia
提出日時 2015-12-15 23:46:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 68 ms / 5,000 ms
コード長 369 bytes
コンパイル時間 2,305 ms
コンパイル使用メモリ 74,356 KB
実行使用メモリ 53,988 KB
最終ジャッジ日時 2024-04-08 18:30:31
合計ジャッジ時間 4,644 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
53,984 KB
testcase_01 AC 55 ms
53,964 KB
testcase_02 AC 56 ms
53,964 KB
testcase_03 AC 57 ms
53,964 KB
testcase_04 AC 59 ms
53,984 KB
testcase_05 AC 56 ms
53,988 KB
testcase_06 AC 55 ms
53,984 KB
testcase_07 AC 57 ms
53,988 KB
testcase_08 AC 56 ms
53,968 KB
testcase_09 AC 56 ms
53,968 KB
testcase_10 AC 55 ms
53,944 KB
testcase_11 AC 57 ms
53,968 KB
testcase_12 AC 56 ms
53,956 KB
testcase_13 AC 57 ms
53,988 KB
testcase_14 AC 56 ms
53,964 KB
testcase_15 AC 55 ms
53,968 KB
testcase_16 AC 64 ms
53,968 KB
testcase_17 AC 57 ms
53,924 KB
testcase_18 AC 56 ms
53,952 KB
testcase_19 AC 68 ms
53,956 KB
testcase_20 AC 60 ms
53,964 KB
testcase_21 AC 59 ms
53,944 KB
testcase_22 AC 58 ms
53,972 KB
testcase_23 AC 56 ms
53,976 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.math.*;

class Main128 {
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		long n = Long.parseLong(br.readLine());
		long m = Long.parseLong(br.readLine());
		
		long d = n / m;
		System.out.println(d - (d % 1000));
	}
}
0