結果

問題 No.779 Heisei
ユーザー YukimotoPG
提出日時 2019-02-12 18:55:00
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 2,360 ms
コンパイル使用メモリ 74,160 KB
実行使用メモリ 54,392 KB
最終ジャッジ日時 2024-09-13 09:45:33
合計ジャッジ時間 6,462 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20 WA * 3
権限があれば一括ダウンロードができます

ソースコード

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;
			}
			if (now[i]<start[i] || end[i]<now[i]) break;
		}
		
		System.out.println(F?"Yes":"No");
		
	}
}
0