藍橋模擬賽 約數個數 JAVA

問題描述java 1200000有多少個約數(只計算正約數)。web 思路:svg 枚舉從1到1200000的數字,依次判斷其是不是1200000的約數,同時維護一個變量來統計個數便可。spa 答案:96code public class Main { public static void main(String[] args) { int ans = 0; int num = 1200
相關文章
相關標籤/搜索