結果

問題 No.46 はじめのn歩
ユーザー yu_017yu_017
提出日時 2019-01-13 18:35:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 3,391 ms
コンパイル使用メモリ 72,096 KB
実行使用メモリ 56,252 KB
最終ジャッジ日時 2023-08-26 21:53:34
合計ジャッジ時間 4,972 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
53,484 KB
testcase_01 AC 127 ms
55,808 KB
testcase_02 AC 126 ms
55,752 KB
testcase_03 AC 128 ms
55,516 KB
testcase_04 AC 117 ms
56,252 KB
testcase_05 AC 116 ms
56,036 KB
testcase_06 AC 111 ms
54,164 KB
testcase_07 AC 117 ms
53,792 KB
testcase_08 AC 115 ms
55,740 KB
testcase_09 AC 112 ms
55,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class A000046 {

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

}
0