結果

問題 No.46 はじめのn歩
ユーザー juger_jvjuger_jv
提出日時 2016-05-02 20:41:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 343 bytes
コンパイル時間 2,450 ms
コンパイル使用メモリ 74,868 KB
実行使用メモリ 50,408 KB
最終ジャッジ日時 2024-04-15 09:18:57
合計ジャッジ時間 3,923 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
49,884 KB
testcase_01 AC 67 ms
50,160 KB
testcase_02 AC 67 ms
50,076 KB
testcase_03 AC 67 ms
50,076 KB
testcase_04 AC 65 ms
49,936 KB
testcase_05 AC 69 ms
50,076 KB
testcase_06 AC 66 ms
50,212 KB
testcase_07 AC 70 ms
50,408 KB
testcase_08 AC 66 ms
50,316 KB
testcase_09 AC 68 ms
49,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
class no46
{
    public static void main(String args[])throws IOException
    {
	BufferedReader sc=new BufferedReader(new InputStreamReader(System.in));
	String ab[]=sc.readLine().split(" ");
	int a,b,ans;
	a=Integer.parseInt(ab[0]);
	b=Integer.parseInt(ab[1]);
	ans=b/a;
	if(b%a!=0)ans+=1;
	System.out.println(ans);
    }
}
0