結果

問題 No.779 Heisei
ユーザー daichi daichi
提出日時 2019-02-08 16:55:31
言語 Ruby
(3.2.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 314 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 11,820 KB
実行使用メモリ 16,008 KB
最終ジャッジ日時 2023-10-22 07:19:35
合計ジャッジ時間 3,035 ms
ジャッジサーバーID
(参考情報)
judge13 / judge10
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
16,008 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 82 ms
16,008 KB
testcase_04 AC 83 ms
16,008 KB
testcase_05 AC 84 ms
16,008 KB
testcase_06 AC 84 ms
16,008 KB
testcase_07 AC 84 ms
16,008 KB
testcase_08 AC 84 ms
16,004 KB
testcase_09 AC 82 ms
16,008 KB
testcase_10 AC 83 ms
16,008 KB
testcase_11 AC 84 ms
16,008 KB
testcase_12 AC 85 ms
16,008 KB
testcase_13 AC 85 ms
16,008 KB
testcase_14 AC 84 ms
16,008 KB
testcase_15 AC 83 ms
16,008 KB
testcase_16 AC 84 ms
16,008 KB
testcase_17 AC 84 ms
16,008 KB
testcase_18 AC 83 ms
16,008 KB
testcase_19 AC 83 ms
16,008 KB
testcase_20 AC 82 ms
16,008 KB
testcase_21 AC 83 ms
16,008 KB
testcase_22 AC 82 ms
16,008 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

Y,M,D = gets.split(" ").map!{|i| i.to_i}


if Y > 1990 && Y < 2019   then
   puts "Yes"

elsif (Y == 1989 && M > 1 ) then
  puts "Yes"
elsif (Y == 1989 && M == 1 && D >= 8) then
  puts "Yes"
elsif (Y == 2019 && M < 4) then
  puts "Yes"
elsif (Y == 2019 && M == 4 && D <= 30) then
  puts "Yes"
else
  puts "No"
end
0