結果

問題 No.46 はじめのn歩
ユーザー spaciaspacia
提出日時 2015-12-15 21:00:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 40 ms / 5,000 ms
コード長 415 bytes
コンパイル時間 1,641 ms
コンパイル使用メモリ 71,920 KB
実行使用メモリ 49,472 KB
最終ジャッジ日時 2023-10-13 17:12:24
合計ジャッジ時間 2,714 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
49,424 KB
testcase_01 AC 37 ms
49,288 KB
testcase_02 AC 38 ms
49,304 KB
testcase_03 AC 38 ms
49,472 KB
testcase_04 AC 40 ms
49,264 KB
testcase_05 AC 39 ms
49,396 KB
testcase_06 AC 38 ms
49,264 KB
testcase_07 AC 38 ms
49,200 KB
testcase_08 AC 40 ms
49,280 KB
testcase_09 AC 39 ms
49,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main46 {
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		
		if (b % a == 0)
			System.out.println(b / a);
		else
			System.out.println(b / a + 1);
	}
}
0