結果

問題 No.779 Heisei
ユーザー daichi daichi
提出日時 2019-02-08 16:52:46
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 314 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 11,492 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-09-10 20:44:22
合計ジャッジ時間 3,277 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
15,344 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 81 ms
15,136 KB
testcase_04 AC 80 ms
15,244 KB
testcase_05 AC 83 ms
15,140 KB
testcase_06 AC 81 ms
15,116 KB
testcase_07 AC 83 ms
15,108 KB
testcase_08 AC 83 ms
15,160 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 83 ms
15,024 KB
testcase_12 AC 83 ms
15,252 KB
testcase_13 AC 83 ms
15,216 KB
testcase_14 AC 82 ms
15,128 KB
testcase_15 AC 83 ms
15,164 KB
testcase_16 AC 81 ms
15,288 KB
testcase_17 AC 78 ms
15,252 KB
testcase_18 AC 83 ms
15,320 KB
testcase_19 AC 78 ms
15,248 KB
testcase_20 AC 77 ms
15,116 KB
testcase_21 AC 82 ms
15,156 KB
testcase_22 AC 77 ms
15,164 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