結果

問題 No.779 Heisei
ユーザー kirohikirohi
提出日時 2019-01-15 17:13:11
言語 Ruby
(3.3.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 288 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 15,304 KB
最終ジャッジ日時 2023-10-14 10:12:46
合計ジャッジ時間 3,169 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,120 KB
testcase_01 AC 84 ms
15,124 KB
testcase_02 AC 79 ms
15,208 KB
testcase_03 AC 79 ms
15,120 KB
testcase_04 WA -
testcase_05 AC 81 ms
15,032 KB
testcase_06 WA -
testcase_07 AC 80 ms
15,116 KB
testcase_08 AC 80 ms
15,244 KB
testcase_09 AC 79 ms
15,032 KB
testcase_10 AC 80 ms
15,104 KB
testcase_11 AC 82 ms
15,240 KB
testcase_12 AC 82 ms
15,108 KB
testcase_13 AC 79 ms
15,212 KB
testcase_14 AC 83 ms
15,076 KB
testcase_15 AC 80 ms
15,080 KB
testcase_16 AC 81 ms
15,152 KB
testcase_17 AC 80 ms
15,032 KB
testcase_18 AC 79 ms
15,040 KB
testcase_19 AC 80 ms
15,108 KB
testcase_20 AC 79 ms
15,248 KB
testcase_21 AC 81 ms
15,156 KB
testcase_22 AC 79 ms
15,304 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

y, m, d = gets.split.map(&:to_i)
if y < 1989
    puts "No"
elsif y == 1989
    if m == 1 && d >= 8
        puts "Yes"
    else
        puts "No"
    end
elsif y < 2019
    puts "Yes"
elsif y == 2019
    if m < 5
        puts "Yes"
    else
        puts "No"
    end
else
    puts "No"
end
0