結果

問題 No.46 はじめのn歩
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-14 23:31:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 220 bytes
コンパイル時間 2,040 ms
コンパイル使用メモリ 71,668 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-10-11 12:48:31
合計ジャッジ時間 4,155 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,044 KB
testcase_01 AC 124 ms
55,976 KB
testcase_02 AC 123 ms
55,780 KB
testcase_03 AC 124 ms
56,052 KB
testcase_04 AC 125 ms
55,944 KB
testcase_05 AC 124 ms
56,184 KB
testcase_06 AC 124 ms
55,776 KB
testcase_07 AC 123 ms
55,932 KB
testcase_08 AC 123 ms
55,756 KB
testcase_09 AC 125 ms
55,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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