fork(1) download
  1. #!perl -p0a
  2. @r=($/=1);$^=.5;@r=map$r-$l+($l=$$_*($r=shift@r)),/./g,$r=$l=0for@F;$_="@r"
  3.  
Success #stdin #stdout 0s 6044KB
stdin
^
/^
^^/
/\/\
^^/^\
^\^\/^
\^^^\^/
stdout
0 0.09375 0.28125 0.4375 0.1875 0 0 0