結果

問題 No.46 はじめのn歩
ユーザー soujikisoujiki
提出日時 2015-04-27 11:56:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 5,000 ms
コード長 281 bytes
コンパイル時間 3,370 ms
コンパイル使用メモリ 72,152 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2023-09-18 13:48:37
合計ジャッジ時間 5,493 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,808 KB
testcase_01 AC 122 ms
55,988 KB
testcase_02 AC 121 ms
55,828 KB
testcase_03 AC 120 ms
55,708 KB
testcase_04 AC 121 ms
55,664 KB
testcase_05 AC 120 ms
56,076 KB
testcase_06 AC 120 ms
55,620 KB
testcase_07 AC 119 ms
55,860 KB
testcase_08 AC 120 ms
55,708 KB
testcase_09 AC 121 ms
55,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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