結果

問題 No.46 はじめのn歩
ユーザー TatsuDXTatsuDX
提出日時 2016-09-08 23:34:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 5,000 ms
コード長 241 bytes
コンパイル時間 3,183 ms
コンパイル使用メモリ 74,512 KB
実行使用メモリ 54,308 KB
最終ジャッジ日時 2024-04-27 18:06:48
合計ジャッジ時間 5,143 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
54,196 KB
testcase_01 AC 132 ms
54,056 KB
testcase_02 AC 132 ms
54,184 KB
testcase_03 AC 133 ms
54,044 KB
testcase_04 AC 130 ms
54,068 KB
testcase_05 AC 128 ms
54,200 KB
testcase_06 AC 118 ms
54,308 KB
testcase_07 AC 128 ms
54,100 KB
testcase_08 AC 129 ms
54,160 KB
testcase_09 AC 130 ms
54,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt(), b = sc.nextInt(), c;
		c = b/a;
		if(b%a > 0){
			c++;
		}
		System.out.println(c);
	}
}
0