結果

問題 No.46 はじめのn歩
ユーザー wf4n9wf4n9
提出日時 2017-07-20 23:49:25
言語 Java21
(openjdk 21)
結果
TLE  
実行時間 -
コード長 302 bytes
コンパイル時間 1,993 ms
コンパイル使用メモリ 74,432 KB
実行使用メモリ 63,076 KB
最終ジャッジ日時 2024-04-17 06:00:04
合計ジャッジ時間 14,409 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class No46 {
	public static void main(String[] args){
		Scanner scn = new Scanner(System.in);
		
		
		int a = Integer.parseInt(scn.next());
		int b = Integer.parseInt(scn.next());
		
		int step = 0;
		while (a > 0) {
			b -= a;
			step++;
		}
		System.out.println(step);
	}
}
0