結果

問題 No.128 お年玉(1)
ユーザー m4s4k1ch1m4s4k1ch1
提出日時 2015-05-28 15:24:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 416 bytes
コンパイル時間 2,335 ms
コンパイル使用メモリ 74,188 KB
実行使用メモリ 53,988 KB
最終ジャッジ日時 2024-04-08 18:09:35
合計ジャッジ時間 4,818 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
53,944 KB
testcase_01 AC 57 ms
53,956 KB
testcase_02 AC 58 ms
53,960 KB
testcase_03 AC 61 ms
53,932 KB
testcase_04 AC 58 ms
53,948 KB
testcase_05 AC 62 ms
53,960 KB
testcase_06 AC 59 ms
53,952 KB
testcase_07 AC 60 ms
53,924 KB
testcase_08 AC 63 ms
53,940 KB
testcase_09 AC 61 ms
53,956 KB
testcase_10 AC 67 ms
53,960 KB
testcase_11 AC 60 ms
53,944 KB
testcase_12 AC 60 ms
53,940 KB
testcase_13 AC 59 ms
53,960 KB
testcase_14 AC 58 ms
53,940 KB
testcase_15 AC 60 ms
53,988 KB
testcase_16 AC 59 ms
53,932 KB
testcase_17 AC 57 ms
53,960 KB
testcase_18 AC 61 ms
53,928 KB
testcase_19 AC 59 ms
53,956 KB
testcase_20 AC 58 ms
53,940 KB
testcase_21 AC 59 ms
53,956 KB
testcase_22 AC 60 ms
53,972 KB
testcase_23 AC 58 ms
53,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String args[]) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		long money = Long.parseLong(line);
		line = br.readLine();
		int children = Integer.parseInt(line);
		
		System.out.println(money / children / 1000 * 1000);
	}
}
0