結果

問題 No.46 はじめのn歩
ユーザー ginmakuraginmakura
提出日時 2017-10-19 20:46:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 409 bytes
コンパイル時間 2,009 ms
コンパイル使用メモリ 74,368 KB
実行使用メモリ 54,164 KB
最終ジャッジ日時 2024-05-01 05:59:42
合計ジャッジ時間 4,052 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
53,804 KB
testcase_01 AC 121 ms
53,948 KB
testcase_02 AC 117 ms
54,064 KB
testcase_03 AC 120 ms
54,108 KB
testcase_04 AC 120 ms
54,048 KB
testcase_05 AC 124 ms
54,120 KB
testcase_06 AC 119 ms
53,852 KB
testcase_07 AC 109 ms
52,972 KB
testcase_08 AC 118 ms
54,164 KB
testcase_09 AC 117 ms
53,992 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.lang.Math;

class N46 {
	public static void main(String[] args) throws Exception{
		try (Scanner sc1 = new Scanner(System.in)) {
		
			int[] array = new int[2];
			
			array[0] = Integer.parseInt(sc1.next());
			array[1] = Integer.parseInt(sc1.next());
			
			System.out.println((int)Math.ceil((double)array[1] / (double)array[0]));
		}
	}
}
0