Comment detail
LL Golf Hole 8 - 横向きのピラミッドを作る (Nested Flatten)This comment is reply for 7408 hogee: 桁あふれしてしまうので0~8までしか指定...(LL Golf Hole 8 - 横向きのピラミッドを作る). Go to thread root.
同じようなアルゴリズムをRubyで書いてみましたが、イマイチ・・・to_i, to_i, to_s, to_i ...
1 2 3 | (('1' * gets.to_i).to_i ** 2).to_s.scan(/./) do |i|
puts "#{'*' * i.to_i}\n"
end
|




hogee
#7481()
[
Perl
]
Rating2/2=1.00
さらに1byte縮んで36byte。
Rating2/2=1.00-0+