結果
問題 | No.2371 最大の試練それは起床 |
ユーザー |
![]() |
提出日時 | 2023-07-07 21:21:46 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 131 ms / 2,000 ms |
コード長 | 541 bytes |
コンパイル時間 | 2,241 ms |
コンパイル使用メモリ | 74,480 KB |
実行使用メモリ | 41,720 KB |
最終ジャッジ日時 | 2024-07-21 16:59:27 |
合計ジャッジ時間 | 6,100 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 |
ソースコード
import java.util.Scanner;public class Main {public static void main(String[] args) throws Exception {Scanner sc = new Scanner(System.in);int h = sc.nextInt();int m = sc.nextInt();sc.close();if (h < 7) {System.out.println("Yes");} else if (h == 7) {if (m < 30) {System.out.println("Yes");} else {System.out.println("Late");}} else if (h == 8) {if (m < 30) {System.out.println("Late");} else {System.out.println("No");}} else {System.out.println("No");}}}