結果

問題 No.1672 404 Not Found
ユーザー みーすけみーすけ
提出日時 2021-10-03 12:16:39
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 269 bytes
コンパイル時間 2,059 ms
コンパイル使用メモリ 71,912 KB
実行使用メモリ 55,940 KB
最終ジャッジ日時 2023-09-28 11:31:16
合計ジャッジ時間 5,532 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,772 KB
testcase_01 AC 122 ms
55,732 KB
testcase_02 AC 124 ms
55,712 KB
testcase_03 AC 121 ms
55,596 KB
testcase_04 AC 122 ms
55,904 KB
testcase_05 AC 123 ms
53,728 KB
testcase_06 AC 122 ms
55,588 KB
testcase_07 AC 122 ms
55,832 KB
testcase_08 AC 122 ms
55,724 KB
testcase_09 AC 121 ms
55,724 KB
testcase_10 AC 122 ms
53,624 KB
testcase_11 AC 122 ms
55,724 KB
testcase_12 AC 120 ms
53,652 KB
testcase_13 AC 122 ms
55,604 KB
testcase_14 AC 124 ms
55,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();

        System.out.println(s.substring(0, 1).equals("4") || s.substring(0, 1).equals("5") ? "Yes" : "No");
    }
}
0