设为n阶方阵A,B,满足A^2=B^2,则() A.A=B B.|A|^2=|B|^2 C.A=-B D.|A|=|B|