Hatena::Groupfizzbuzz

ebanの日記 RSSフィード

 | 

2010-03-14 (Sun)

%を使わずにRuby16:51

(1..100).zip([p,p,:Fizz]*100, [p,p,p,p,:Buzz]*100) do |i, *a|
  puts a.join.max || i
end
 |