# from http://c...content-available-to-author-only...e.com/a/49665/31054 P=[1]for C in input().split(): l,*Q=0, for p,c in zip(P,C):r=p*"\^/".find(c)/2;Q+=l+r,;l=p-r P=Q+[l]print(P)
^ /^ ^^/ /\/\ ^^/^\ ^\^\/^ \^^^\^/
[0.5, 0.5]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!