結果

問題 No.779 Heisei
ユーザー MASATO338MASATO338
提出日時 2019-02-08 16:33:30
言語 Ruby
(3.3.0)
結果
AC  
実行時間 86 ms / 1,000 ms
コード長 294 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 11,532 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-08-06 02:13:32
合計ジャッジ時間 2,741 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,236 KB
testcase_01 AC 71 ms
15,104 KB
testcase_02 AC 75 ms
15,032 KB
testcase_03 AC 72 ms
15,024 KB
testcase_04 AC 73 ms
15,232 KB
testcase_05 AC 72 ms
15,120 KB
testcase_06 AC 72 ms
15,124 KB
testcase_07 AC 71 ms
15,108 KB
testcase_08 AC 73 ms
15,028 KB
testcase_09 AC 70 ms
15,092 KB
testcase_10 AC 70 ms
15,284 KB
testcase_11 AC 73 ms
15,156 KB
testcase_12 AC 76 ms
15,032 KB
testcase_13 AC 72 ms
15,272 KB
testcase_14 AC 72 ms
15,136 KB
testcase_15 AC 72 ms
15,300 KB
testcase_16 AC 70 ms
15,268 KB
testcase_17 AC 73 ms
15,280 KB
testcase_18 AC 73 ms
15,160 KB
testcase_19 AC 73 ms
15,028 KB
testcase_20 AC 73 ms
15,284 KB
testcase_21 AC 74 ms
15,080 KB
testcase_22 AC 73 ms
15,144 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

year,month,day = gets.chomp.split.map(&:to_i)
if year <= 1988 || year >= 2020
	j = "No"
elsif year == 1989
	if month >= 2
		j =  "Yes"
	else
		if day <= 7
			j = "No"
		else
			j = "Yes"
		end
	end
elsif year == 2019
	if month >= 5
		j =  "No"
	else
		j = "Yes"
	end
else
	j = "Yes"
end

puts j
0