結果

問題 No.46 はじめのn歩
ユーザー doyazaki012doyazaki012
提出日時 2015-04-24 18:04:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 136 ms / 5,000 ms
コード長 278 bytes
コンパイル時間 2,204 ms
コンパイル使用メモリ 71,156 KB
実行使用メモリ 55,960 KB
最終ジャッジ日時 2023-09-18 09:03:02
合計ジャッジ時間 4,319 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
55,824 KB
testcase_01 AC 136 ms
55,960 KB
testcase_02 AC 134 ms
55,748 KB
testcase_03 AC 134 ms
55,520 KB
testcase_04 AC 132 ms
55,736 KB
testcase_05 AC 131 ms
55,844 KB
testcase_06 AC 131 ms
55,840 KB
testcase_07 AC 130 ms
55,480 KB
testcase_08 AC 131 ms
55,540 KB
testcase_09 AC 136 ms
55,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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