結果

問題 No.2371 最大の試練それは起床
ユーザー t-0hashit-0hashi
提出日時 2023-07-28 09:39:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 147 ms / 2,000 ms
コード長 501 bytes
コンパイル時間 1,963 ms
コンパイル使用メモリ 74,136 KB
実行使用メモリ 41,520 KB
最終ジャッジ日時 2024-04-15 18:43:55
合計ジャッジ時間 5,222 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
39,752 KB
testcase_01 AC 116 ms
41,220 KB
testcase_02 AC 103 ms
40,228 KB
testcase_03 AC 113 ms
41,520 KB
testcase_04 AC 111 ms
41,096 KB
testcase_05 AC 102 ms
40,220 KB
testcase_06 AC 147 ms
40,940 KB
testcase_07 AC 117 ms
41,276 KB
testcase_08 AC 108 ms
40,364 KB
testcase_09 AC 107 ms
40,768 KB
testcase_10 AC 116 ms
41,300 KB
testcase_11 AC 103 ms
39,732 KB
testcase_12 AC 109 ms
41,048 KB
testcase_13 AC 115 ms
41,200 KB
testcase_14 AC 113 ms
41,224 KB
testcase_15 AC 112 ms
41,120 KB
testcase_16 AC 105 ms
40,108 KB
testcase_17 AC 103 ms
40,456 KB
testcase_18 AC 116 ms
41,160 KB
testcase_19 AC 115 ms
41,092 KB
testcase_20 AC 113 ms
41,012 KB
testcase_21 AC 113 ms
41,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int H = Integer.parseInt(scan.next());
        int M = Integer.parseInt(scan.next());
        scan.close();

        if (H < 7 || (H == 7 && M < 30)) {
            System.out.println("Yes");
        } else if (H < 8 || (H == 8 && M < 30)) {
            System.out.println("Late");
        } else {
            System.out.println("No");
        }
    }
}
0