結果

問題 No.46 はじめのn歩
ユーザー barrett114514barrett114514
提出日時 2017-07-20 19:57:29
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 3,723 ms
コンパイル使用メモリ 73,992 KB
実行使用メモリ 41,472 KB
最終ジャッジ日時 2024-04-17 05:56:28
合計ジャッジ時間 5,118 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
41,244 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 127 ms
41,112 KB
testcase_04 AC 130 ms
40,992 KB
testcase_05 AC 130 ms
41,252 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 130 ms
40,996 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class StepToN {

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

}
0