結果

問題 No.128 お年玉(1)
ユーザー maru
提出日時 2016-03-20 00:51:33
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 333 bytes
コンパイル時間 2,901 ms
コンパイル使用メモリ 77,352 KB
実行使用メモリ 55,648 KB
最終ジャッジ日時 2024-10-01 10:15:15
合計ジャッジ時間 6,286 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class yukicoder_128 {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		int n = scanner.nextInt();
		int m = scanner.nextInt();
		
		int a = n / m / 1000;
		int money = a * 1000;
		
		if (money < 1000) {
			money = 0;
		}
		
		System.out.println(money);
	}
}
0