Comment detail
LL Golf Hole 8 - 横向きのピラミッドを作る (Nested Flatten)This comment is reply for 7419 kgbu: 実行するには、以下のようにコマンド入力し...(LL Golf Hole 8 - 横向きのピラミッドを作る). Go to thread root.
This comment is reply for 7419 kgbu: 実行するには、以下のようにコマンド入力し...(LL Golf Hole 8 - 横向きのピラミッドを作る). Go to thread root.
kgbu #7420() [ Erlang ] Rating0/0=0.00
-module(pyramid). -export([main/1]). main([N])-> Len=list_to_integer(atom_to_list(N)), s(Len,p(Len)). s(0,_)->0; s(1,S)->io:format("~s", [S]); s(N,S)->s(N - 1, p(N - 1) ++ S ++ p(N - 1)). p(0)-> [$\n]; p(N)-> "*" ++ p(N - 1).Rating0/0=0.00-0+