load("solve")$ load("gr")$ def junban(A,B){ return (AB ? -1:0))$ } def worder(A,B){ return (A[0]B[0] ? -1:0))$ } def wsort(A,B,C){ D=newvect(length(B))$ for(I=0;I