1)注意==和=的区别; 2)注意数据类型定义,和题目的要求; 3)多次循环处的变量不能重复; 4)注意强迫数据类型转换,转化为long long的数据类型,不能用int(), 如:q=int(sqrt(n))*int(sqrt(n));