#! /usr/bin/ruby # coding: utf-8 require 'test/unit' def lm(*n) o=n.sort() i=o.find_index {|x| x % 2 == 0} if i.nil? then return 0 end ox=[o[i]] if i>0 then ox.push(o[0..i-1]) end if i+1