結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-01-26 18:03:06 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 497 bytes |
コンパイル時間 | 3,216 ms |
コンパイル使用メモリ | 74,716 KB |
実行使用メモリ | 56,108 KB |
最終ジャッジ日時 | 2024-09-16 15:55:22 |
合計ジャッジ時間 | 7,392 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 <= 1990 && 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" ); } } }