結果

問題 No.779 Heisei
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-12 19:02:03
言語 Java21
(openjdk 21)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 581 bytes
コンパイル時間 2,118 ms
コンパイル使用メモリ 71,464 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-09-14 11:54:54
合計ジャッジ時間 6,024 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,712 KB
testcase_01 AC 125 ms
55,696 KB
testcase_02 AC 125 ms
55,856 KB
testcase_03 AC 126 ms
55,796 KB
testcase_04 WA -
testcase_05 AC 126 ms
55,944 KB
testcase_06 AC 125 ms
56,032 KB
testcase_07 AC 127 ms
56,228 KB
testcase_08 AC 128 ms
55,760 KB
testcase_09 AC 126 ms
55,792 KB
testcase_10 AC 125 ms
55,752 KB
testcase_11 AC 127 ms
55,724 KB
testcase_12 AC 125 ms
55,732 KB
testcase_13 AC 125 ms
55,752 KB
testcase_14 AC 125 ms
55,764 KB
testcase_15 AC 124 ms
55,792 KB
testcase_16 AC 123 ms
55,756 KB
testcase_17 AC 125 ms
55,704 KB
testcase_18 AC 125 ms
55,884 KB
testcase_19 AC 125 ms
56,064 KB
testcase_20 AC 128 ms
55,784 KB
testcase_21 AC 124 ms
55,760 KB
testcase_22 AC 123 ms
56,132 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;
			}
			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