結果

問題 No.46 はじめのn歩
ユーザー ya-hurusan
提出日時 2020-01-25 23:58:50
言語 Java
(openjdk 23)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 3,438 ms
コンパイル使用メモリ 73,936 KB
実行使用メモリ 54,088 KB
最終ジャッジ日時 2024-09-14 04:18:23
合計ジャッジ時間 5,439 ms
ジャッジサーバーID
(参考情報)
judge5 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

package answer;

import java.util.Scanner;

public class No_46 {

	public static void main(String[] args) {

		// 入力値定義
		Scanner input = new Scanner(System.in);
		int step = input.nextInt();
		int distance = input.nextInt();

		// 処理部
		int cal = (distance / step );

		if((cal * step) < distance){
			cal = (cal + 1);
		}

		System.out.println(cal);

	}

}
0