結果

問題 No.128 お年玉(1)
ユーザー 3pstn
提出日時 2015-01-25 14:09:35
言語 Java
(openjdk 23)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 280 bytes
コンパイル時間 1,973 ms
コンパイル使用メモリ 73,888 KB
実行使用メモリ 54,092 KB
最終ジャッジ日時 2024-10-01 09:48:01
合計ジャッジ時間 6,236 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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