結果

問題 No.128 お年玉(1)
ユーザー SuunnSuunn
提出日時 2018-11-20 07:35:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 246 bytes
コンパイル時間 2,077 ms
コンパイル使用メモリ 73,832 KB
実行使用メモリ 57,956 KB
最終ジャッジ日時 2024-04-08 19:39:11
合計ジャッジ時間 5,956 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,804 KB
testcase_01 AC 128 ms
57,692 KB
testcase_02 AC 126 ms
57,940 KB
testcase_03 AC 126 ms
57,820 KB
testcase_04 AC 125 ms
57,828 KB
testcase_05 AC 125 ms
57,832 KB
testcase_06 AC 125 ms
57,712 KB
testcase_07 AC 126 ms
57,816 KB
testcase_08 AC 127 ms
57,716 KB
testcase_09 AC 126 ms
57,820 KB
testcase_10 AC 126 ms
57,700 KB
testcase_11 AC 127 ms
57,692 KB
testcase_12 AC 114 ms
56,684 KB
testcase_13 AC 125 ms
57,564 KB
testcase_14 AC 128 ms
57,956 KB
testcase_15 AC 127 ms
57,704 KB
testcase_16 AC 126 ms
57,948 KB
testcase_17 AC 128 ms
57,588 KB
testcase_18 AC 112 ms
56,688 KB
testcase_19 AC 124 ms
57,812 KB
testcase_20 AC 126 ms
57,704 KB
testcase_21 AC 126 ms
57,680 KB
testcase_22 AC 126 ms
57,692 KB
testcase_23 AC 128 ms
57,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
	

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

		long N = sc.nextLong();
		long M = sc.nextLong();
		System.out.println(N/1000/M*1000);
	}
	

}
0