結果

問題 No.779 Heisei
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-12 18:55:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 464 bytes
コンパイル時間 2,118 ms
コンパイル使用メモリ 72,444 KB
実行使用メモリ 56,468 KB
最終ジャッジ日時 2023-10-11 10:59:43
合計ジャッジ時間 6,202 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,780 KB
testcase_01 AC 124 ms
55,964 KB
testcase_02 AC 122 ms
55,900 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 123 ms
55,816 KB
testcase_06 AC 123 ms
55,580 KB
testcase_07 AC 123 ms
55,700 KB
testcase_08 AC 123 ms
55,692 KB
testcase_09 AC 121 ms
56,044 KB
testcase_10 AC 123 ms
55,948 KB
testcase_11 AC 123 ms
56,024 KB
testcase_12 AC 120 ms
55,920 KB
testcase_13 AC 124 ms
55,544 KB
testcase_14 AC 122 ms
55,812 KB
testcase_15 AC 123 ms
56,196 KB
testcase_16 AC 122 ms
55,700 KB
testcase_17 AC 123 ms
55,928 KB
testcase_18 WA -
testcase_19 AC 125 ms
55,752 KB
testcase_20 AC 124 ms
55,592 KB
testcase_21 AC 122 ms
56,052 KB
testcase_22 AC 123 ms
56,012 KB
権限があれば一括ダウンロードができます

ソースコード

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