結果

問題 No.46 はじめのn歩
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-08 21:44:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 5,000 ms
コード長 224 bytes
コンパイル時間 6,605 ms
コンパイル使用メモリ 74,572 KB
実行使用メモリ 57,704 KB
最終ジャッジ日時 2023-10-26 03:10:45
合計ジャッジ時間 5,202 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,704 KB
testcase_01 AC 130 ms
57,496 KB
testcase_02 AC 129 ms
57,676 KB
testcase_03 AC 129 ms
57,424 KB
testcase_04 AC 130 ms
57,616 KB
testcase_05 AC 132 ms
57,536 KB
testcase_06 AC 131 ms
57,392 KB
testcase_07 AC 134 ms
57,204 KB
testcase_08 AC 133 ms
57,588 KB
testcase_09 AC 137 ms
57,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		int n = sc.nextInt();
		int m = sc.nextInt();
		System.out.println(m%n==0?(m/n):(m/n+1));
	}
}
0