結果

問題 No.779 Heisei
ユーザー NewbiekunNewbiekun
提出日時 2019-01-26 18:08:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 1,000 ms
コード長 517 bytes
コンパイル時間 3,943 ms
コンパイル使用メモリ 75,120 KB
実行使用メモリ 54,332 KB
最終ジャッジ日時 2024-04-23 21:59:50
合計ジャッジ時間 8,034 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
54,220 KB
testcase_01 AC 133 ms
54,064 KB
testcase_02 AC 137 ms
53,840 KB
testcase_03 AC 133 ms
53,784 KB
testcase_04 AC 132 ms
54,180 KB
testcase_05 AC 136 ms
53,876 KB
testcase_06 AC 137 ms
54,060 KB
testcase_07 AC 132 ms
53,996 KB
testcase_08 AC 132 ms
53,792 KB
testcase_09 AC 134 ms
54,076 KB
testcase_10 AC 134 ms
53,976 KB
testcase_11 AC 134 ms
54,332 KB
testcase_12 AC 138 ms
53,936 KB
testcase_13 AC 139 ms
54,132 KB
testcase_14 AC 134 ms
54,124 KB
testcase_15 AC 134 ms
53,844 KB
testcase_16 AC 137 ms
54,196 KB
testcase_17 AC 133 ms
54,020 KB
testcase_18 AC 139 ms
54,296 KB
testcase_19 AC 136 ms
54,232 KB
testcase_20 AC 138 ms
54,040 KB
testcase_21 AC 135 ms
52,948 KB
testcase_22 AC 137 ms
54,092 KB
権限があれば一括ダウンロードができます

ソースコード

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; }			// ~1988 or 2020~
		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