ll@T;rep(T){ll@N,@M,@K;wt(K>(N-1)*M+1?(N*M-K)/(1.0M):1-((K+M-1)/M)/(N*1.0M));}