結果

問題 No.779 Heisei
ユーザー YukimotoPG
提出日時 2019-02-12 19:02:03
言語 Java
(openjdk 23)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 581 bytes
コンパイル時間 2,035 ms
コンパイル使用メモリ 74,588 KB
実行使用メモリ 41,392 KB
最終ジャッジ日時 2024-07-01 19:21:33
合計ジャッジ時間 6,075 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

//

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		int[] start = {1989, 1, 8};
		int[] end = {2019, 4, 30};
		int[] now = {sc.nextInt(), sc.nextInt(), sc.nextInt()};
		
		boolean F = false;
		for (int i=0; i<3; i++) {
			if (start[i]<now[i] && now[i]<end[i]) {
				F = true; break;
			}
			else if (start[i]==now[i] || now[i]==end[i]) {
				if (i == 2) {
					F = true; break;
				}
			}
			else if (now[i]<start[i] || end[i]<now[i]) {
				break;
			}
		}
		
		System.out.println(F?"Yes":"No");
		
	}
}
0