結果

問題 No.779 Heisei
ユーザー YukimotoPG
提出日時 2019-02-12 18:50:50
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 416 bytes
コンパイル時間 1,989 ms
コンパイル使用メモリ 74,156 KB
実行使用メモリ 54,424 KB
最終ジャッジ日時 2024-09-13 09:44:48
合計ジャッジ時間 5,844 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 9
権限があれば一括ダウンロードができます

ソースコード

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;
			}
		}
		
		System.out.println(F?"Yes":"No");
		
	}
}
0