結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,284 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 79 ms
15,092 KB
testcase_04 AC 84 ms
15,056 KB
testcase_05 AC 79 ms
15,232 KB
testcase_06 AC 81 ms
15,080 KB
testcase_07 AC 80 ms
15,080 KB
testcase_08 AC 80 ms
15,132 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 79 ms
15,176 KB
testcase_12 AC 80 ms
15,016 KB
testcase_13 AC 79 ms
15,128 KB
testcase_14 AC 78 ms
15,276 KB
testcase_15 AC 79 ms
15,148 KB
testcase_16 AC 79 ms
15,192 KB
testcase_17 AC 79 ms
15,008 KB
testcase_18 AC 78 ms
15,148 KB
testcase_19 AC 79 ms
15,156 KB
testcase_20 AC 78 ms
15,236 KB
testcase_21 AC 80 ms
15,176 KB
testcase_22 AC 80 ms
15,096 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