結果

問題 No.388 階段 (1)
ユーザー jimanojimano
提出日時 2017-05-06 09:50:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 451 bytes
コンパイル時間 1,933 ms
コンパイル使用メモリ 71,344 KB
実行使用メモリ 49,408 KB
最終ジャッジ日時 2023-10-12 14:57:14
合計ジャッジ時間 3,695 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,208 KB
testcase_01 AC 41 ms
49,208 KB
testcase_02 AC 42 ms
49,112 KB
testcase_03 AC 41 ms
49,248 KB
testcase_04 AC 42 ms
49,100 KB
testcase_05 AC 42 ms
49,212 KB
testcase_06 AC 42 ms
49,408 KB
testcase_07 AC 41 ms
49,212 KB
testcase_08 AC 42 ms
49,300 KB
testcase_09 AC 42 ms
49,252 KB
testcase_10 AC 42 ms
49,112 KB
testcase_11 AC 41 ms
49,200 KB
testcase_12 AC 42 ms
49,396 KB
testcase_13 AC 42 ms
49,196 KB
testcase_14 AC 41 ms
49,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main{
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] str = br.readLine().split(" ");
			int d = Integer.parseInt(str[0]);
			int p = Integer.parseInt(str[1]);
			System.out.println(d / p + 1);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0