def show_numbers(params)
list = %w(18 22 11 73 91 38 24 17)
### 集合確定部分
filtered_list = []
list.each do |element|
case params
when :aho
if element.include?('3') || element.to_i.modulo(3) == 0
filtered_list << element
end
when :even
if element.to_i.even?
filtered_list << element
end
when :odd
if element.to_i.odd?
filtered_list << element
end
else
filtered_list << element
end
end
### 集合表示部分
puts '<html>'
puts ' <ul>'
filtered_list.each do |element|
puts " <ui>#{element}</ui>"
end
puts ' </ul>'
puts '</html>'
end
#### :even
show_numbers(:even)
ZGVmIHNob3dfbnVtYmVycyhwYXJhbXMpCiAgbGlzdCA9ICV3KDE4IDIyIDExIDczIDkxIDM4IDI0IDE3KQoKICAjIyMg6ZuG5ZCI56K65a6a6YOo5YiGCiAgZmlsdGVyZWRfbGlzdCA9IFtdCiAgbGlzdC5lYWNoIGRvIHxlbGVtZW50fAogICAgY2FzZSBwYXJhbXMKICAgICAgd2hlbiA6YWhvCiAgICAgICAgaWYgZWxlbWVudC5pbmNsdWRlPygnMycpIHx8IGVsZW1lbnQudG9faS5tb2R1bG8oMykgPT0gMAogICAgICAgICAgZmlsdGVyZWRfbGlzdCA8PCBlbGVtZW50CiAgICAgICAgZW5kCiAgICAgIHdoZW4gOmV2ZW4KICAgICAgICBpZiBlbGVtZW50LnRvX2kuZXZlbj8KICAgICAgICAgIGZpbHRlcmVkX2xpc3QgPDwgZWxlbWVudAogICAgICAgIGVuZAogICAgICB3aGVuIDpvZGQKICAgICAgICBpZiBlbGVtZW50LnRvX2kub2RkPwogICAgICAgICAgZmlsdGVyZWRfbGlzdCA8PCBlbGVtZW50CiAgICAgICAgZW5kCiAgICAgIGVsc2UKICAgICAgICBmaWx0ZXJlZF9saXN0IDw8IGVsZW1lbnQKICAgIGVuZAogIGVuZAoKCiAgIyMjIOmbhuWQiOihqOekuumDqOWIhgogIHB1dHMgJzxodG1sPicKICBwdXRzICcgIDx1bD4nCiAgZmlsdGVyZWRfbGlzdC5lYWNoIGRvIHxlbGVtZW50fAogICAgcHV0cyAiICAgIDx1aT4je2VsZW1lbnR9PC91aT4iCiAgZW5kCiAgcHV0cyAnICA8L3VsPicKICBwdXRzICc8L2h0bWw+JwplbmQKCiMjIyMgOmV2ZW4Kc2hvd19udW1iZXJzKDpldmVuKQ==