結果

問題 No.128 お年玉(1)
ユーザー ちよちゃん
提出日時 2016-05-11 14:29:21
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 388 bytes
コンパイル時間 3,511 ms
コンパイル使用メモリ 75,416 KB
実行使用メモリ 54,484 KB
最終ジャッジ日時 2024-10-01 10:18:03
合計ジャッジ時間 7,689 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 1 RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yuki11 {
	
	public static void main(String[] args) {
		
		final int thousand = 1000;
		
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int m = scan.nextInt();
		scan.close();
		
	    if(n>m*thousand){
	    	System.out.println(thousand*(n/(m*thousand)));
	    }else{
	    	System.out.println(0);
	    }
	}
}
0