結果

問題 No.779 Heisei
ユーザー shinwisteriashinwisteria
提出日時 2019-01-20 22:14:32
言語 Java19
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 361 bytes
コンパイル時間 4,417 ms
コンパイル使用メモリ 72,744 KB
実行使用メモリ 56,352 KB
最終ジャッジ日時 2023-08-05 23:52:15
合計ジャッジ時間 6,639 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
55,996 KB
testcase_01 AC 113 ms
55,828 KB
testcase_02 AC 111 ms
56,188 KB
testcase_03 AC 110 ms
55,676 KB
testcase_04 AC 110 ms
55,920 KB
testcase_05 AC 109 ms
56,316 KB
testcase_06 AC 114 ms
56,228 KB
testcase_07 AC 115 ms
56,224 KB
testcase_08 AC 111 ms
55,916 KB
testcase_09 AC 111 ms
55,804 KB
testcase_10 AC 113 ms
55,556 KB
testcase_11 AC 109 ms
55,900 KB
testcase_12 AC 114 ms
55,984 KB
testcase_13 AC 115 ms
56,048 KB
testcase_14 AC 113 ms
56,312 KB
testcase_15 AC 112 ms
55,736 KB
testcase_16 AC 114 ms
56,076 KB
testcase_17 AC 121 ms
54,136 KB
testcase_18 AC 111 ms
55,788 KB
testcase_19 AC 113 ms
56,160 KB
testcase_20 AC 118 ms
53,756 KB
testcase_21 AC 114 ms
55,816 KB
testcase_22 AC 116 ms
56,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No779 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int Y = s.nextInt(),M = s.nextInt(),D = s.nextInt();
		s.close();

		int total = Y * 10000 + M * 100 + D;
		if(total >= 19890108 && total <= 20190430){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}

	}

}
0