結果

問題 No.388 階段 (1)
ユーザー yoshito1124
提出日時 2022-03-06 18:35:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 2,868 ms
コンパイル使用メモリ 74,436 KB
実行使用メモリ 50,520 KB
最終ジャッジ日時 2024-07-21 04:19:36
合計ジャッジ時間 6,306 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		int result = (int)Math.ceil(a / b);

		if(a % b == 0) {
			result += 1;
		}

		System.out.println(result);

		
		sc.close();
	}
}
0