B1968 [Ahoi2005]COMMON 约数研究 数论

大水题,一分钟就做完了。。。直接枚举1~n就行了,然后在n中判断出现多少次。 题干: Description Input 只有一行一个整数 N(0 < N < 1000000)。 Output 只有一行输出,为整数M,即f(1)到f(N)的累加和。 Sample Input 3 Sample Output 5 HINT Source 代码: #include<iostream> #include<
相关文章
相关标签/搜索