結果
| 問題 | No.779 Heisei | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2019-02-08 16:55:31 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                WA
                                 
                            (最新) 
                                AC
                                 
                            (最初) | 
| 実行時間 | - | 
| コード長 | 314 bytes | 
| コンパイル時間 | 91 ms | 
| コンパイル使用メモリ | 7,424 KB | 
| 実行使用メモリ | 12,416 KB | 
| 最終ジャッジ日時 | 2024-09-22 08:28:11 | 
| 合計ジャッジ時間 | 2,916 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 21 WA * 2 | 
コンパイルメッセージ
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
            
            
            
        