Power Tree slow by I., S.

P=:2e4#0
(0":0-.~'c'&e.{::(101{.P)(;|.)a:{&P".@}.)&.stdin]14([:;<@(,"#:{:4 :0]+{:)"1^:)1
P=:x(y=.y#~0=y{P)}P
y
)

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

download

return to the top page