結果

問題 No.46 はじめのn歩
ユーザー AoiroFukurouAoiroFukurou
提出日時 2016-11-09 16:02:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 530 ms / 5,000 ms
コード長 286 bytes
コンパイル時間 3,340 ms
コンパイル使用メモリ 74,300 KB
実行使用メモリ 41,580 KB
最終ジャッジ日時 2024-05-04 00:18:15
合計ジャッジ時間 5,212 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
41,248 KB
testcase_01 AC 116 ms
41,200 KB
testcase_02 AC 115 ms
40,948 KB
testcase_03 AC 116 ms
41,344 KB
testcase_04 AC 116 ms
40,972 KB
testcase_05 AC 110 ms
41,252 KB
testcase_06 AC 118 ms
41,580 KB
testcase_07 AC 117 ms
41,440 KB
testcase_08 AC 530 ms
41,108 KB
testcase_09 AC 117 ms
41,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class No_046 {
public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = 0;
	int ans = 0;
	while(c < b){
		c += a;
		ans++;
	}
	System.out.println(ans);
}
}
0