1157 亲和数 利用函数解决 摘要:#include<stdio.h>#include<math.h>int fun(int n){ int i,a,b,c,m,sum=0; m=sqrt(n);//可提高效率 for(i=2;i<=…… 题解列表 2023年02月01日 0 点赞 0 评论 331 浏览 评分:9.9
1157: 亲和数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Dome19 { public static void main(String…… 题解列表 2023年04月13日 0 点赞 0 评论 400 浏览 评分:9.9
1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int zys(int x){ int sum=0; for(int…… 题解列表 2023年09月09日 0 点赞 0 评论 323 浏览 评分:9.9
最简洁的代码 摘要:def divisor_sum(n): return sum(i for i in range(1, n) if n % i == 0) def is_True(a, b): r…… 题解列表 2023年10月15日 0 点赞 0 评论 456 浏览 评分:9.9
亲和数题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int is_qhs(int a,int b){ int sum1=0; int sum2=0; for(int…… 题解列表 2023年12月01日 0 点赞 0 评论 223 浏览 评分:9.9
c语言亲和数 摘要:#include int main() { int a; int m,n; scanf("%d",&a); for(int i=0;i…… 题解列表 2023年12月19日 0 点赞 0 评论 339 浏览 评分:9.9
c++(格式工整清晰,容易理解) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; void solve(int a,int b) { int sum_a=0,…… 题解列表 2024年02月06日 0 点赞 0 评论 352 浏览 评分:9.9
1157: 亲和数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin >> n; while(…… 题解列表 2024年08月30日 1 点赞 0 评论 663 浏览 评分:9.9
优质题解 1157: 亲和数 摘要:##1157: 亲和数:tw-1f366: ######这道题很简单,我写的也很简单,看一眼就懂 ###题目描述 古希腊数学家毕达哥拉斯在自然数研究中发现,220的所有真约数(即不是自身的约数)…… 题解列表 2022年12月26日 0 点赞 3 评论 1585 浏览 评分:9.7