結果
問題 |
No.779 Heisei
|
ユーザー |
|
提出日時 | 2019-02-08 16:52:46 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 314 bytes |
コンパイル時間 | 41 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-06-28 11:50:30 |
合計ジャッジ時間 | 3,196 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 4 |
コンパイルメッセージ
Syntax OK
ソースコード
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