結果

問題 No.46 はじめのn歩
ユーザー shinwisteriashinwisteria
提出日時 2017-03-18 17:50:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 3,257 ms
コンパイル使用メモリ 71,208 KB
実行使用メモリ 56,424 KB
最終ジャッジ日時 2023-09-18 02:28:51
合計ジャッジ時間 5,180 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,752 KB
testcase_01 AC 122 ms
55,724 KB
testcase_02 AC 125 ms
55,880 KB
testcase_03 AC 122 ms
55,632 KB
testcase_04 AC 123 ms
56,424 KB
testcase_05 AC 123 ms
55,636 KB
testcase_06 AC 124 ms
55,812 KB
testcase_07 AC 122 ms
55,680 KB
testcase_08 AC 128 ms
55,548 KB
testcase_09 AC 125 ms
55,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Nho {

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

	}

}
0