結果

問題 No.779 Heisei
ユーザー MASATO338MASATO338
提出日時 2019-02-08 16:31:22
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 346 ms
コンパイル使用メモリ 11,536 KB
実行使用メモリ 15,400 KB
最終ジャッジ日時 2023-09-10 19:45:07
合計ジャッジ時間 3,752 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 83 ms
15,008 KB
testcase_02 AC 82 ms
15,100 KB
testcase_03 AC 83 ms
15,236 KB
testcase_04 AC 80 ms
15,056 KB
testcase_05 WA -
testcase_06 AC 81 ms
15,080 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 83 ms
15,152 KB
testcase_10 AC 81 ms
15,112 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 81 ms
15,320 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 81 ms
15,076 KB
testcase_17 AC 82 ms
15,336 KB
testcase_18 AC 80 ms
15,016 KB
testcase_19 AC 80 ms
15,256 KB
testcase_20 AC 82 ms
15,132 KB
testcase_21 WA -
testcase_22 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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