結果

問題 No.779 Heisei
ユーザー NewbiekunNewbiekun
提出日時 2019-01-26 18:05:13
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 497 bytes
コンパイル時間 4,889 ms
コンパイル使用メモリ 72,388 KB
実行使用メモリ 57,980 KB
最終ジャッジ日時 2023-10-14 22:17:36
合計ジャッジ時間 8,189 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 123 ms
55,708 KB
testcase_02 AC 122 ms
55,760 KB
testcase_03 AC 120 ms
55,700 KB
testcase_04 AC 123 ms
55,604 KB
testcase_05 WA -
testcase_06 AC 118 ms
55,676 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 119 ms
53,840 KB
testcase_10 AC 120 ms
55,888 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 116 ms
55,816 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 123 ms
56,080 KB
testcase_17 AC 125 ms
55,580 KB
testcase_18 AC 124 ms
55,596 KB
testcase_19 AC 122 ms
55,792 KB
testcase_20 AC 123 ms
55,808 KB
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class No779
{
	public static void main(String args[])
	{
		Scanner sc = new Scanner(System.in);
		int Y = sc.nextInt();
		int M = sc.nextInt();
		int D = sc.nextInt();

		int hantei = 0; // 1 = ×
		if( Y <= 1988 && Y >= 2020 ){ hantei = 1; }
		if( Y == 2019 && M >= 5 ){ hantei = 1; }			// 2019/05~
		if( Y == 1989 && M == 1 && D <= 7 ){ hantei = 1; }	// ~1989/01/07

		if( hantei == 1 ){ System.out.println( "No" ); }
		else{ System.out.println( "Yes" ); }
	}
}
0