結果

問題 No.773 コンテスト
ユーザー tentententen
提出日時 2020-12-09 18:16:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 145 ms / 2,000 ms
コード長 380 bytes
コンパイル時間 2,173 ms
コンパイル使用メモリ 74,184 KB
実行使用メモリ 57,628 KB
最終ジャッジ日時 2023-10-19 05:04:04
合計ジャッジ時間 6,874 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
57,408 KB
testcase_01 AC 140 ms
57,448 KB
testcase_02 AC 139 ms
57,480 KB
testcase_03 AC 145 ms
57,168 KB
testcase_04 AC 139 ms
57,484 KB
testcase_05 AC 142 ms
57,544 KB
testcase_06 AC 138 ms
57,152 KB
testcase_07 AC 140 ms
57,148 KB
testcase_08 AC 137 ms
57,404 KB
testcase_09 AC 138 ms
57,440 KB
testcase_10 AC 139 ms
57,444 KB
testcase_11 AC 137 ms
57,584 KB
testcase_12 AC 137 ms
57,516 KB
testcase_13 AC 141 ms
57,548 KB
testcase_14 AC 135 ms
57,628 KB
testcase_15 AC 135 ms
57,432 KB
testcase_16 AC 139 ms
57,620 KB
testcase_17 AC 138 ms
57,104 KB
testcase_18 AC 138 ms
57,484 KB
testcase_19 AC 136 ms
57,408 KB
testcase_20 AC 139 ms
57,504 KB
testcase_21 AC 136 ms
57,544 KB
testcase_22 AC 136 ms
55,704 KB
testcase_23 AC 135 ms
57,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int count = 0;
        for (int i = 23; i <= 25; i++) {
            if (i < a || i > b) {
                count++;
            }
        }
        System.out.println(count);
    }
}
0