結果

問題 No.46 はじめのn歩
ユーザー reo3313reo3313
提出日時 2015-09-21 23:08:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 618 ms / 5,000 ms
コード長 456 bytes
コンパイル時間 3,991 ms
コンパイル使用メモリ 73,016 KB
実行使用メモリ 56,140 KB
最終ジャッジ日時 2023-09-26 14:14:49
合計ジャッジ時間 6,413 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 141 ms
53,876 KB
testcase_01 AC 139 ms
55,724 KB
testcase_02 AC 139 ms
55,460 KB
testcase_03 AC 143 ms
55,700 KB
testcase_04 AC 140 ms
55,880 KB
testcase_05 AC 143 ms
55,696 KB
testcase_06 AC 147 ms
53,408 KB
testcase_07 AC 140 ms
56,140 KB
testcase_08 AC 618 ms
55,852 KB
testcase_09 AC 140 ms
55,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package test46;
import java.util.Scanner;

public class test46_class {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner sc = new Scanner(System.in);

        int s1 = sc.nextInt();
        int s2 = sc.nextInt();
        int i=0;
        
        while(0<s2){
            s2 = s2-s1;
            i++;
        }
        System.out.print( i+"\n");
        }
}
0