結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-02-03 01:54:38 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 1,000 ms |
コード長 | 650 bytes |
コンパイル時間 | 5,449 ms |
コンパイル使用メモリ | 74,828 KB |
実行使用メモリ | 54,384 KB |
最終ジャッジ日時 | 2024-11-06 04:59:34 |
合計ジャッジ時間 | 7,535 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int Y = sc.nextInt(); int M = sc.nextInt(); int D = sc.nextInt(); sc.close(); if(1989 <= Y && Y <= 2019) { if(Y == 1989) { if(M == 1) { if(D >= 8) { System.out.println("Yes"); }else { System.out.println("No"); } }else { System.out.println("Yes"); } }else if(Y == 2019) { if(M > 4) { System.out.println("No"); }else { System.out.println("Yes"); } }else { System.out.println("Yes"); } }else { System.out.println("No"); } } }