結果

問題 No.46 はじめのn歩
ユーザー aaaaasatoriaaaaasatori
提出日時 2018-02-04 19:51:24
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 276 bytes
コンパイル時間 3,166 ms
コンパイル使用メモリ 71,724 KB
実行使用メモリ 56,384 KB
最終ジャッジ日時 2023-09-12 16:06:07
合計ジャッジ時間 5,206 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,884 KB
testcase_01 AC 118 ms
54,172 KB
testcase_02 AC 119 ms
55,968 KB
testcase_03 AC 121 ms
55,880 KB
testcase_04 AC 119 ms
56,024 KB
testcase_05 AC 119 ms
56,208 KB
testcase_06 AC 119 ms
55,992 KB
testcase_07 AC 119 ms
56,152 KB
testcase_08 AC 119 ms
56,384 KB
testcase_09 AC 120 ms
56,160 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No46 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		if(b % a == 0) {
			System.out.println(b / a);
		}else {
			System.out.println(b /a + 1);
		}
	}
}
0