Identify Smith Numbers

    AC代碼: (質因數分解)  #include <iostream>#include <bits/stdc++.h>using namespace std;long long solve(long long n){    long long sum = 0;    while(n)    {        sum = sum + (n%10);        n = n/10;    } 
相關文章
相關標籤/搜索