题解 1157: 亲和数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

亲和数(二维数组)

摘要:解题思路:利用函数求出所传值的各因子之和注意事项:参考代码:#include<stdio.h>int s(int n){       int sum=0;       for(int i=1;i<n;……

亲和数(水题)

摘要:```c #include long long f(int n){ long long i,sum=0; for(i=1;i……

1157:亲和数

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int f(int t){ int sum=1,k; for(……

编写题解 1157: 亲和数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int judge(int n,int m){    int i=0;    int sum=0;……