結果

問題 No.46 はじめのn歩
ユーザー newoota0331newoota0331
提出日時 2016-09-01 17:20:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 132 ms / 5,000 ms
コード長 460 bytes
コンパイル時間 2,022 ms
コンパイル使用メモリ 74,692 KB
実行使用メモリ 54,272 KB
最終ジャッジ日時 2024-04-27 14:25:55
合計ジャッジ時間 3,924 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
54,092 KB
testcase_01 AC 115 ms
52,496 KB
testcase_02 AC 128 ms
54,064 KB
testcase_03 AC 131 ms
54,204 KB
testcase_04 AC 129 ms
53,668 KB
testcase_05 AC 115 ms
52,580 KB
testcase_06 AC 127 ms
54,272 KB
testcase_07 AC 128 ms
54,016 KB
testcase_08 AC 128 ms
53,996 KB
testcase_09 AC 127 ms
54,016 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		int a,b;
		
		a = sc.nextInt();
		b = sc.nextInt();
		
		if(b%a==0){
			a = (b / a);
		}else{
			a = (b / a) + 1;
		}
		
		System.out.println(a);
	}
}
0