結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-01-26 18:05:13 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 497 bytes |
コンパイル時間 | 3,453 ms |
コンパイル使用メモリ | 74,400 KB |
実行使用メモリ | 41,228 KB |
最終ジャッジ日時 | 2024-09-16 15:57:10 |
合計ジャッジ時間 | 6,970 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 10 |
ソースコード
import java.util.Scanner; public class No779 { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int Y = sc.nextInt(); int M = sc.nextInt(); int D = sc.nextInt(); int hantei = 0; // 1 = × if( Y <= 1988 && Y >= 2020 ){ hantei = 1; } if( Y == 2019 && M >= 5 ){ hantei = 1; } // 2019/05~ if( Y == 1989 && M == 1 && D <= 7 ){ hantei = 1; } // ~1989/01/07 if( hantei == 1 ){ System.out.println( "No" ); } else{ System.out.println( "Yes" ); } } }