結果

問題 No.46 はじめのn歩
ユーザー len_proglen_prog
提出日時 2016-06-03 10:20:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 274 bytes
コンパイル時間 3,359 ms
コンパイル使用メモリ 74,804 KB
実行使用メモリ 41,572 KB
最終ジャッジ日時 2024-04-16 23:26:44
合計ジャッジ時間 5,331 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 133 ms
41,324 KB
testcase_01 AC 134 ms
41,572 KB
testcase_02 AC 135 ms
41,524 KB
testcase_03 AC 133 ms
41,316 KB
testcase_04 AC 133 ms
40,968 KB
testcase_05 AC 120 ms
40,092 KB
testcase_06 AC 132 ms
41,168 KB
testcase_07 AC 130 ms
41,256 KB
testcase_08 AC 131 ms
41,368 KB
testcase_09 AC 134 ms
41,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Yuki46 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();

		if(b % a == 0) System.out.println(b / a);
		else System.out.println(b / a + 1);
	}

}
0