結果

問題 No.2371 最大の試練それは起床
ユーザー t-0hashi
提出日時 2023-07-28 09:39:25
言語 Java
(openjdk 23)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 501 bytes
コンパイル時間 2,193 ms
コンパイル使用メモリ 75,624 KB
実行使用メモリ 41,464 KB
最終ジャッジ日時 2024-10-05 20:51:28
合計ジャッジ時間 5,394 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19
権限があれば一括ダウンロードができます

ソースコード

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