编写题解 1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int judge(int n,int m){ int i=0; int sum=0;…… 题解列表 2023年01月04日 0 点赞 0 评论 235 浏览 评分:0.0
亲和数(二维数组) 摘要:解题思路:利用函数求出所传值的各因子之和注意事项:参考代码:#include<stdio.h>int s(int n){ int sum=0; for(int i=1;i<n;…… 题解列表 2023年01月13日 0 点赞 0 评论 255 浏览 评分:0.0
亲和数(python代码) 摘要:def cal(x): total = 0 for i in range(1,x): if x%i==0: &nb 题解列表 2023年01月14日 0 点赞 2 评论 155 浏览 评分:0.0
亲和数(水题) 摘要:```c #include long long f(int n){ long long i,sum=0; for(i=1;i…… 题解列表 2023年02月02日 0 点赞 0 评论 313 浏览 评分:0.0
亲和数——一个数的因子和等于另一个数 摘要:解题思路:注意事项:前面那个数的因子和不包括它本身参考代码:def yzh(n): L = [1] for i in range(2,n): if n%i == 0: …… 题解列表 2023年03月19日 0 点赞 0 评论 301 浏览 评分:0.0
1157:亲和数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int f(int t){ int sum=1,k; for(…… 题解列表 2023年04月02日 0 点赞 0 评论 299 浏览 评分:0.0
1157: 亲和数m. 摘要:解题思路:注意事项:参考代码:package function; import java.util.Scanner; //题目 1157: 亲和数 public class t_1157 { …… 题解列表 2024年02月20日 0 点赞 0 评论 221 浏览 评分:0.0
1157亲和数(简单的统计约数求和) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin >> N; while (N) { int a…… 题解列表 2024年07月09日 0 点赞 0 评论 292 浏览 评分:0.0
题解 1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll a[100000],b[10000…… 题解列表 2024年07月10日 0 点赞 0 评论 202 浏览 评分:0.0
1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll qinhe(ll x){ l…… 题解列表 2024年07月10日 0 点赞 0 评论 274 浏览 评分:0.0