結果

問題 No.46 はじめのn歩
ユーザー marumaru
提出日時 2016-03-23 01:20:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 5,000 ms
コード長 277 bytes
コンパイル時間 3,986 ms
コンパイル使用メモリ 74,840 KB
実行使用メモリ 54,516 KB
最終ジャッジ日時 2024-04-09 03:35:54
合計ジャッジ時間 5,408 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
54,104 KB
testcase_01 AC 122 ms
53,856 KB
testcase_02 AC 123 ms
54,088 KB
testcase_03 AC 124 ms
53,984 KB
testcase_04 AC 124 ms
53,852 KB
testcase_05 AC 124 ms
54,516 KB
testcase_06 AC 125 ms
53,956 KB
testcase_07 AC 124 ms
53,976 KB
testcase_08 AC 123 ms
53,808 KB
testcase_09 AC 113 ms
52,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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