結果

問題 No.2371 最大の試練それは起床
ユーザー t-0hashi
提出日時 2023-07-27 19:16:50
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 1,754 ms
コンパイル使用メモリ 74,296 KB
実行使用メモリ 54,176 KB
最終ジャッジ日時 2024-10-04 19:22:12
合計ジャッジ時間 4,959 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 17 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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