結果

問題 No.46 はじめのn歩
ユーザー swdamdrswdamdr
提出日時 2017-02-03 09:19:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 287 bytes
コンパイル時間 3,034 ms
コンパイル使用メモリ 71,836 KB
実行使用メモリ 56,456 KB
最終ジャッジ日時 2023-08-25 18:13:25
合計ジャッジ時間 5,104 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
56,020 KB
testcase_01 AC 120 ms
55,700 KB
testcase_02 AC 112 ms
56,060 KB
testcase_03 AC 114 ms
56,264 KB
testcase_04 AC 121 ms
56,028 KB
testcase_05 AC 121 ms
55,580 KB
testcase_06 AC 111 ms
56,268 KB
testcase_07 AC 113 ms
56,456 KB
testcase_08 AC 113 ms
55,884 KB
testcase_09 AC 115 ms
55,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Sample01 {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		
		long a = scan.nextLong();
		long b = scan.nextLong();
		
		long ans = b / a;
		
		if(b % a != 0){
			ans++;
		}
		
		System.out.println(ans);
	}
}
0