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<
相關文章
相關標籤/搜索