結果

問題 No.46 はじめのn歩
ユーザー len_discoreg
提出日時 2016-06-02 17:14:51
言語 Java
(openjdk 23)
結果
AC  
実行時間 538 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 2,005 ms
コンパイル使用メモリ 74,048 KB
実行使用メモリ 41,544 KB
最終ジャッジ日時 2024-10-08 05:35:55
合計ジャッジ時間 4,388 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
    public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
    	int a = scan.nextInt();
    	int b = scan.nextInt();

    	int pedometer = 0;

    	int total = 0;
    	while(total < b){
    		pedometer++;
    		total = total + a;
    	}
    	System.out.println(pedometer);
    }
}
0