結果

問題 No.388 階段 (1)
ユーザー kaoetayakaoetaya
提出日時 2016-12-09 17:22:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 317 bytes
コンパイル時間 3,164 ms
コンパイル使用メモリ 71,696 KB
実行使用メモリ 56,112 KB
最終ジャッジ日時 2023-08-19 03:16:23
合計ジャッジ時間 5,920 ms
ジャッジサーバーID
(参考情報)
judge10 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,356 KB
testcase_01 AC 122 ms
55,804 KB
testcase_02 AC 121 ms
55,352 KB
testcase_03 AC 122 ms
55,356 KB
testcase_04 AC 126 ms
55,484 KB
testcase_05 AC 123 ms
55,656 KB
testcase_06 AC 122 ms
55,784 KB
testcase_07 AC 123 ms
55,620 KB
testcase_08 AC 120 ms
55,604 KB
testcase_09 AC 119 ms
55,660 KB
testcase_10 AC 126 ms
55,636 KB
testcase_11 AC 121 ms
56,112 KB
testcase_12 AC 121 ms
55,320 KB
testcase_13 AC 125 ms
55,640 KB
testcase_14 AC 123 ms
55,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Test {
    public static void main(String[] args) {

        Scanner s = new Scanner(System.in);
        int st = s.nextInt(),f = s.nextInt();
        int fl = 0;
        
        do{
        	st -= f;
        	fl++;

        }while(st >= 0);

        System.out.println(fl);
    }
}
0