結果

問題 No.779 Heisei
ユーザー kirohikirohi
提出日時 2019-01-15 17:10:00
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 261 bytes
コンパイル時間 676 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 15,348 KB
最終ジャッジ日時 2023-09-07 12:20:48
合計ジャッジ時間 4,403 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,208 KB
testcase_01 AC 82 ms
15,156 KB
testcase_02 AC 84 ms
15,100 KB
testcase_03 AC 86 ms
15,148 KB
testcase_04 WA -
testcase_05 AC 83 ms
15,244 KB
testcase_06 WA -
testcase_07 AC 82 ms
15,228 KB
testcase_08 AC 82 ms
15,156 KB
testcase_09 AC 86 ms
15,280 KB
testcase_10 AC 82 ms
15,344 KB
testcase_11 AC 81 ms
15,108 KB
testcase_12 AC 81 ms
15,048 KB
testcase_13 AC 83 ms
15,112 KB
testcase_14 AC 83 ms
15,036 KB
testcase_15 AC 83 ms
15,184 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 83 ms
15,248 KB
testcase_19 AC 82 ms
15,080 KB
testcase_20 AC 84 ms
15,256 KB
testcase_21 AC 85 ms
15,100 KB
testcase_22 AC 83 ms
15,300 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"
    end
elsif y < 2019
    puts "Yes"
elsif y == 2019
    if m < 5
        puts "Yes"
    else
        puts "No"
    end
else
    puts "No"
end
0