結果

問題 No.779 Heisei
ユーザー Junpei KuriyamaJunpei Kuriyama
提出日時 2019-01-26 14:05:51
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 42 ms
コンパイル使用メモリ 11,280 KB
実行使用メモリ 15,352 KB
最終ジャッジ日時 2023-10-14 10:10:03
合計ジャッジ時間 3,054 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,140 KB
testcase_01 AC 83 ms
15,140 KB
testcase_02 AC 87 ms
15,084 KB
testcase_03 AC 82 ms
15,144 KB
testcase_04 AC 82 ms
15,248 KB
testcase_05 AC 82 ms
15,108 KB
testcase_06 AC 82 ms
15,352 KB
testcase_07 AC 85 ms
15,124 KB
testcase_08 AC 83 ms
15,140 KB
testcase_09 AC 83 ms
15,144 KB
testcase_10 AC 82 ms
15,156 KB
testcase_11 AC 82 ms
15,144 KB
testcase_12 AC 82 ms
15,136 KB
testcase_13 AC 83 ms
15,036 KB
testcase_14 AC 84 ms
15,036 KB
testcase_15 AC 83 ms
15,260 KB
testcase_16 WA -
testcase_17 AC 83 ms
15,268 KB
testcase_18 AC 82 ms
15,124 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 83 ms
15,032 KB
testcase_22 AC 82 ms
15,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a, b, c = gets.split.map(&:to_i)

if a == 1989 && b == 1 && c >= 8
  puts "Yes"
elsif a == 2019 && b >= 4
  puts "Yes"
elsif a.between?(1989, 2019)
  puts "Yes"
else
  puts "No"
end
0