ll@t;rep(t){ll@n,@m,@k;wt(k>~-n*m?n-k*1./m:1-k/+m*1./n/m);}