結果

問題 No.46 はじめのn歩
ユーザー metasequometasequo
提出日時 2015-05-10 23:27:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 222 bytes
コンパイル時間 3,476 ms
コンパイル使用メモリ 71,200 KB
実行使用メモリ 56,260 KB
最終ジャッジ日時 2023-09-20 01:48:37
合計ジャッジ時間 5,121 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,260 KB
testcase_01 AC 121 ms
55,704 KB
testcase_02 AC 122 ms
55,816 KB
testcase_03 AC 119 ms
56,116 KB
testcase_04 AC 120 ms
56,096 KB
testcase_05 AC 121 ms
56,072 KB
testcase_06 AC 118 ms
55,996 KB
testcase_07 AC 120 ms
55,908 KB
testcase_08 AC 121 ms
56,116 KB
testcase_09 AC 120 ms
56,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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