leap year by tabasa

require 'date'\x0d
while gets\x0d
i=$_.t_i\x0d
s"#{i} is #{if Date.ne(i).leap?&&i!=1500;""else;"not ";end}a leap year."\x0d
end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page