結果

問題 No.779 Heisei
ユーザー tottoripaper
提出日時 2019-01-11 21:31:57
言語 Ruby
(3.4.1)
結果
AC  
実行時間 95 ms / 1,000 ms
コード長 229 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,544 KB
最終ジャッジ日時 2024-11-06 01:48:53
合計ジャッジ時間 3,104 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'date'

startDate = Date.new(1989, 1, 8)
endDate = Date.new(2019, 4, 30)

y, m, d = gets.chomp.split(' ').map(&:to_i)

date = Date.new(y, m, d)

if (startDate..endDate).cover?(date) then
  puts "Yes"
else
  puts "No"
end
0