結果

問題 No.128 お年玉(1)
ユーザー omc-test
提出日時 2016-08-03 13:56:47
言語 Java
(openjdk 23)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 266 bytes
コンパイル時間 1,997 ms
コンパイル使用メモリ 74,664 KB
実行使用メモリ 54,496 KB
最終ジャッジ日時 2024-10-01 10:23:10
合計ジャッジ時間 5,846 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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();
		sc.close();
		long money = ((n / 1000) / m) * 1000;
		System.out.println(money);
	}
}
0