結果
問題 |
No.779 Heisei
|
ユーザー |
![]() |
提出日時 | 2019-01-26 17:55:28 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 501 bytes |
コンパイル時間 | 3,419 ms |
コンパイル使用メモリ | 74,540 KB |
実行使用メモリ | 54,488 KB |
最終ジャッジ日時 | 2024-09-16 15:43:13 |
合計ジャッジ時間 | 7,307 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 WA * 11 |
ソースコード
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; } if( Y == 1989 && D <= 7 ){ hantei = 1; } if( Y == 2019 && M >= 5 ){ hantei = 1; } if( hantei == 1 ){ System.out.println( "No" ); } else{ System.out.println( "Yes" ); } } }