結果

問題 No.46 はじめのn歩
ユーザー HTmojiHTmoji
提出日時 2018-06-19 09:49:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 3,527 ms
コンパイル使用メモリ 72,892 KB
実行使用メモリ 56,368 KB
最終ジャッジ日時 2023-09-13 07:03:58
合計ジャッジ時間 5,020 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,960 KB
testcase_01 AC 121 ms
55,988 KB
testcase_02 AC 121 ms
55,636 KB
testcase_03 AC 121 ms
56,272 KB
testcase_04 AC 120 ms
56,288 KB
testcase_05 AC 121 ms
55,792 KB
testcase_06 AC 123 ms
56,156 KB
testcase_07 AC 121 ms
56,368 KB
testcase_08 AC 121 ms
55,560 KB
testcase_09 AC 124 ms
55,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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

		int i1 = sc.nextInt();
		int i2 = sc.nextInt();

		if(i2%i1 == 0) {
			System.out.println((i2/i1));
		} else {
			System.out.print((i2/i1 + 1));
		}
	}
}
0