結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
55,824 KB
testcase_02 AC 131 ms
55,804 KB
testcase_03 AC 129 ms
53,632 KB
testcase_04 AC 128 ms
56,144 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 127 ms
55,968 KB
testcase_10 AC 130 ms
55,764 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 126 ms
55,652 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 125 ms
55,668 KB
testcase_17 AC 126 ms
55,764 KB
testcase_18 AC 128 ms
56,004 KB
testcase_19 AC 124 ms
55,908 KB
testcase_20 AC 126 ms
55,884 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 <= 1990 && Y >= 2020 ){ hantei = 1; }
		if( Y == 2019 && M >= 5 ){ hantei = 1; }
		if( Y == 1989 && D <= 7 ){ hantei = 1; }
		if( Y == 2019 && M >= 5 ){ hantei = 1; }

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