結果

問題 No.779 Heisei
ユーザー osyo-mangaosyo-manga
提出日時 2023-02-03 18:49:06
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 283 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 11,404 KB
実行使用メモリ 15,632 KB
最終ジャッジ日時 2023-09-15 14:12:22
合計ジャッジ時間 3,384 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,416 KB
testcase_01 AC 84 ms
15,488 KB
testcase_02 AC 86 ms
15,312 KB
testcase_03 AC 83 ms
15,308 KB
testcase_04 AC 82 ms
15,576 KB
testcase_05 WA -
testcase_06 AC 83 ms
15,308 KB
testcase_07 AC 82 ms
15,416 KB
testcase_08 AC 82 ms
15,364 KB
testcase_09 AC 83 ms
15,584 KB
testcase_10 AC 82 ms
15,368 KB
testcase_11 AC 84 ms
15,568 KB
testcase_12 AC 84 ms
15,312 KB
testcase_13 AC 82 ms
15,428 KB
testcase_14 AC 82 ms
15,480 KB
testcase_15 AC 81 ms
15,376 KB
testcase_16 WA -
testcase_17 AC 83 ms
15,412 KB
testcase_18 AC 83 ms
15,572 KB
testcase_19 AC 83 ms
15,468 KB
testcase_20 AC 84 ms
15,568 KB
testcase_21 AC 84 ms
15,316 KB
testcase_22 AC 83 ms
15,444 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require "date"
# puts (Date.new(1989, 1, 8)..Date.new(2019, 4, 30)).cover?(Date.new(*gets.split.map(&:to_i))) ? "Yes" : "No"

require "time"
puts Time.instance_method(:between?).bind_call(*[gets.split(' ').join('-'), '1988-01-08', '2019-04-30'].map { Time.parse _1 }) ? 'Yes' : 'No'
0