結果

問題 No.128 お年玉(1)
ユーザー 3pstn
提出日時 2015-01-25 14:04:24
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 275 bytes
コンパイル時間 1,903 ms
コンパイル使用メモリ 73,860 KB
実行使用メモリ 41,724 KB
最終ジャッジ日時 2024-10-01 09:47:17
合計ジャッジ時間 5,384 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();

		a = a /1000;
		if(a < b){
			System.out.println("0");
		}else{
			System.out.println(a/b*1000);
		}
	}
}
0