結果

問題 No.46 はじめのn歩
ユーザー Koketti1Koketti1
提出日時 2017-02-04 11:02:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 308 bytes
コンパイル時間 1,915 ms
コンパイル使用メモリ 70,680 KB
実行使用メモリ 56,116 KB
最終ジャッジ日時 2023-08-25 20:06:18
合計ジャッジ時間 3,944 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,060 KB
testcase_01 AC 121 ms
56,056 KB
testcase_02 AC 121 ms
55,812 KB
testcase_03 AC 121 ms
56,108 KB
testcase_04 AC 121 ms
56,088 KB
testcase_05 AC 122 ms
55,652 KB
testcase_06 AC 122 ms
56,116 KB
testcase_07 AC 123 ms
56,016 KB
testcase_08 AC 122 ms
55,956 KB
testcase_09 AC 124 ms
56,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		if(b % a == 0){
			System.out.println(b/a);
		}else{
			System.out.println(b / a + 1);
		}
		scanner.close();
	}
}
0