結果

問題 No.128 お年玉(1)
ユーザー YOSHIYOSHI
提出日時 2021-03-01 21:27:29
言語 Java21
(openjdk 21)
結果
AC  
実行時間 55 ms / 5,000 ms
コード長 403 bytes
コンパイル時間 3,729 ms
コンパイル使用メモリ 74,116 KB
実行使用メモリ 50,332 KB
最終ジャッジ日時 2024-04-14 03:50:52
合計ジャッジ時間 5,555 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
50,308 KB
testcase_01 AC 54 ms
50,280 KB
testcase_02 AC 53 ms
50,032 KB
testcase_03 AC 54 ms
50,196 KB
testcase_04 AC 55 ms
50,200 KB
testcase_05 AC 54 ms
50,324 KB
testcase_06 AC 53 ms
50,316 KB
testcase_07 AC 53 ms
50,228 KB
testcase_08 AC 52 ms
50,248 KB
testcase_09 AC 53 ms
50,052 KB
testcase_10 AC 53 ms
50,180 KB
testcase_11 AC 54 ms
50,316 KB
testcase_12 AC 53 ms
50,300 KB
testcase_13 AC 53 ms
50,252 KB
testcase_14 AC 52 ms
49,836 KB
testcase_15 AC 54 ms
49,912 KB
testcase_16 AC 53 ms
50,028 KB
testcase_17 AC 53 ms
50,332 KB
testcase_18 AC 54 ms
50,280 KB
testcase_19 AC 53 ms
50,276 KB
testcase_20 AC 54 ms
50,236 KB
testcase_21 AC 53 ms
50,296 KB
testcase_22 AC 52 ms
50,124 KB
testcase_23 AC 53 ms
50,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No00000128_Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		long n = Long.parseLong(br.readLine());
		int m = Integer.parseInt(br.readLine());

		System.out.println(((n / m) / 1000) * 1000);

	}
}
0