結果

問題 No.779 Heisei
ユーザー shinwisteriashinwisteria
提出日時 2019-01-20 22:14:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 361 bytes
コンパイル時間 4,085 ms
コンパイル使用メモリ 75,232 KB
実行使用メモリ 41,408 KB
最終ジャッジ日時 2024-04-23 20:21:28
合計ジャッジ時間 6,468 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
40,944 KB
testcase_01 AC 107 ms
39,788 KB
testcase_02 AC 103 ms
39,952 KB
testcase_03 AC 108 ms
41,124 KB
testcase_04 AC 106 ms
41,256 KB
testcase_05 AC 108 ms
41,116 KB
testcase_06 AC 106 ms
41,248 KB
testcase_07 AC 109 ms
41,392 KB
testcase_08 AC 100 ms
40,332 KB
testcase_09 AC 110 ms
40,928 KB
testcase_10 AC 109 ms
41,136 KB
testcase_11 AC 109 ms
41,112 KB
testcase_12 AC 106 ms
40,112 KB
testcase_13 AC 137 ms
41,408 KB
testcase_14 AC 138 ms
41,116 KB
testcase_15 AC 133 ms
41,216 KB
testcase_16 AC 111 ms
40,724 KB
testcase_17 AC 108 ms
41,140 KB
testcase_18 AC 97 ms
40,364 KB
testcase_19 AC 104 ms
41,004 KB
testcase_20 AC 106 ms
41,256 KB
testcase_21 AC 106 ms
41,216 KB
testcase_22 AC 106 ms
41,184 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