結果

問題 No.128 お年玉(1)
ユーザー TwinkleStar74TwinkleStar74
提出日時 2017-09-30 16:48:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 448 bytes
コンパイル時間 3,646 ms
コンパイル使用メモリ 74,680 KB
実行使用メモリ 54,008 KB
最終ジャッジ日時 2024-04-08 19:18:07
合計ジャッジ時間 6,138 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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

public class No128 {
		public static void main(String args[]){
			try{
				BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
         		long budget = Long.parseLong(br.readLine());
         		int member = Integer.parseInt(br.readLine());
         		System.out.println((budget / (member*1000)) * 1000);
			}catch(Exception e){
				e.getStackTrace();
			}
	}
}
0