結果

問題 No.46 はじめのn歩
ユーザー GchansanjouGchansanjou
提出日時 2018-02-10 01:04:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 5,000 ms
コード長 642 bytes
コンパイル時間 4,392 ms
コンパイル使用メモリ 73,608 KB
実行使用メモリ 37,272 KB
最終ジャッジ日時 2024-04-17 15:12:43
合計ジャッジ時間 5,342 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
36,720 KB
testcase_01 AC 52 ms
36,848 KB
testcase_02 AC 51 ms
37,272 KB
testcase_03 AC 52 ms
36,884 KB
testcase_04 AC 54 ms
37,060 KB
testcase_05 AC 51 ms
36,816 KB
testcase_06 AC 52 ms
37,272 KB
testcase_07 AC 53 ms
37,016 KB
testcase_08 AC 51 ms
36,912 KB
testcase_09 AC 53 ms
36,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukiCoder;

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

public class No00046 {

	public static void main(String[] args) {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));

		try {
			String[] input = new String[2];
			input = bufferedReader.readLine().split(" ");
			Long width = Long.parseLong(input[0]);
			Long distance = Long.parseLong(input[1]);

			int count = 0;
			count = (int) (distance/width);
			if(distance%width != 0) {
				count++;
			}

			System.out.println(count);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
0