結果

問題 No.46 はじめのn歩
ユーザー kou6839kou6839
提出日時 2014-11-18 23:24:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 238 bytes
コンパイル時間 4,319 ms
コンパイル使用メモリ 71,788 KB
実行使用メモリ 56,380 KB
最終ジャッジ日時 2023-08-30 21:12:05
合計ジャッジ時間 4,729 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
56,024 KB
testcase_01 AC 136 ms
54,688 KB
testcase_02 AC 136 ms
55,860 KB
testcase_03 AC 135 ms
55,808 KB
testcase_04 AC 135 ms
55,824 KB
testcase_05 AC 133 ms
54,068 KB
testcase_06 AC 135 ms
55,900 KB
testcase_07 AC 136 ms
56,216 KB
testcase_08 AC 137 ms
56,380 KB
testcase_09 AC 135 ms
55,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double m = sc.nextDouble();
		System.out.println((int)Math.ceil(m/n));
	}
}	
0