设n阶矩阵A有n个特征值0,1,2,...,n-1,且矩阵B~A,求det(I+B)