Rt,两个做法,A是枚举 i≤ni\le \sqrt ni≤n,如果 nmod i=0n \mod i = 0nmodi=0 那么 iii 和 n÷in\div in÷i,B是对 nnn 分解质因数然后计算每一个因数,令我不解的是 A做法跑了800+ms B做法只跑了200-ms