結果

問題 No.128 お年玉(1)
ユーザー ちよちゃんちよちゃん
提出日時 2016-05-11 14:38:09
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 399 bytes
コンパイル時間 3,853 ms
コンパイル使用メモリ 74,516 KB
実行使用メモリ 58,216 KB
最終ジャッジ日時 2024-04-08 18:42:42
合計ジャッジ時間 8,117 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 144 ms
57,976 KB
testcase_01 AC 147 ms
57,572 KB
testcase_02 AC 144 ms
57,812 KB
testcase_03 AC 144 ms
58,196 KB
testcase_04 WA -
testcase_05 AC 145 ms
58,088 KB
testcase_06 AC 143 ms
57,964 KB
testcase_07 AC 145 ms
57,684 KB
testcase_08 AC 148 ms
57,688 KB
testcase_09 AC 145 ms
58,080 KB
testcase_10 AC 147 ms
57,568 KB
testcase_11 AC 141 ms
57,544 KB
testcase_12 AC 143 ms
57,836 KB
testcase_13 AC 144 ms
57,800 KB
testcase_14 AC 146 ms
57,708 KB
testcase_15 AC 145 ms
57,964 KB
testcase_16 AC 146 ms
57,564 KB
testcase_17 AC 143 ms
58,216 KB
testcase_18 AC 140 ms
57,592 KB
testcase_19 AC 143 ms
57,556 KB
testcase_20 AC 148 ms
57,684 KB
testcase_21 AC 144 ms
57,956 KB
testcase_22 AC 147 ms
57,560 KB
testcase_23 AC 142 ms
58,084 KB
権限があれば一括ダウンロードができます

ソースコード

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);
		long n = scan.nextLong();
		int m = scan.nextInt();
		scan.close();
		
	    if(n>m*thousand && m > 0){
	    	System.out.println(thousand*(n/(m*thousand)));
	    }else{
	    	System.out.println(0);
	    }
	}
}
0