結果

問題 No.46 はじめのn歩
ユーザー takutakutakutaku
提出日時 2020-09-16 15:15:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 3,369 ms
コンパイル使用メモリ 71,488 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-09-04 03:34:47
合計ジャッジ時間 5,170 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,840 KB
testcase_01 AC 119 ms
56,104 KB
testcase_02 AC 121 ms
55,820 KB
testcase_03 AC 121 ms
55,952 KB
testcase_04 AC 118 ms
55,560 KB
testcase_05 AC 118 ms
55,972 KB
testcase_06 AC 119 ms
55,684 KB
testcase_07 AC 118 ms
55,756 KB
testcase_08 AC 117 ms
54,356 KB
testcase_09 AC 119 ms
56,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main(String[] args) {
	  
	  Scanner sc = new Scanner(System.in);
	  int a = sc.nextInt();
	  int b = sc.nextInt();
	  
	  int step = b / a;
	  
	  if(b % a != 0) {
	      step++;
	  }
	  
	  System.out.println(step);
	  
	}
}
0