結果

問題 No.46 はじめのn歩
ユーザー HTmojiHTmoji
提出日時 2018-06-19 09:42:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 3,173 ms
コンパイル使用メモリ 71,848 KB
実行使用メモリ 56,692 KB
最終ジャッジ日時 2023-09-13 07:03:37
合計ジャッジ時間 5,002 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,632 KB
testcase_01 WA -
testcase_02 AC 120 ms
55,808 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 119 ms
56,012 KB
testcase_07 WA -
testcase_08 AC 120 ms
55,992 KB
testcase_09 AC 120 ms
55,524 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%i2 == 0) {
			System.out.println((i2/i1));
		} else {
			System.out.print((i2/i1 + 1));
		}
	}
}
0