結果

問題 No.46 はじめのn歩
ユーザー scache
提出日時 2014-11-13 07:10:22
言語 Java
(openjdk 23)
結果
AC  
実行時間 149 ms / 5,000 ms
コード長 377 bytes
コンパイル時間 3,708 ms
コンパイル使用メモリ 77,696 KB
実行使用メモリ 54,452 KB
最終ジャッジ日時 2024-12-31 10:09:36
合計ジャッジ時間 5,943 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main46 {
	public static void main(String[] args) {
		Main46 p = new Main46();
	}

	public Main46() {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b =sc.nextInt();
		solve(a, b);
	}

	public void solve(int a, int b) {
		int res = b/a;
		if(b%a>0)
			res++;
		System.out.println(res);
	}

}
0