1157: 亲和数(c语言解法) 摘要:解题思路:写一个函数计算约数之和#include <stdio.h>int sss(int i);int main(){ int m; scanf("%d",&…… 题解列表 2025年02月13日 1 点赞 0 评论 43 浏览 评分:10.0
2025元旦快乐,马原背了吗 摘要:解题思路:#include<stdio.h> int factsum(int n); int judge(int a,int b); int main(void) { int a, …… 题解列表 2024年12月31日 0 点赞 0 评论 100 浏览 评分:0.0
1157: 亲和数 递归写的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int yssum(int a,int b){ if (b >= a) { return 0; } …… 题解列表 2024年12月12日 0 点赞 0 评论 120 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,n,sum1=0,sum2=0; scanf("%d",&n); whil…… 题解列表 2024年11月21日 0 点赞 0 评论 118 浏览 评分:0.0
亲和数c++语言 摘要:#include<iostream> using namespace std; int Yue(int n) { int sum = 0; for (int i = 1; i < n;…… 题解列表 2024年10月19日 0 点赞 0 评论 52 浏览 评分:0.0
1157题解(C语言) 摘要:```c #include // 函数 yue_shu 用于计算一个整数 n 的所有真约数(除了它本身)的和 int yue_shu(int n){ int sum = 0; //…… 题解列表 2024年08月30日 0 点赞 0 评论 130 浏览 评分:0.0
1157: 亲和数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin >> n; while(…… 题解列表 2024年08月30日 0 点赞 0 评论 298 浏览 评分:9.9
1157: 亲和数 摘要:```cpp #include using namespace std; int qhs(int x,int y){ int a=0,b=0; for(int i=1;i…… 题解列表 2024年07月25日 0 点赞 0 评论 59 浏览 评分:0.0
1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll qinhe(ll x){ l…… 题解列表 2024年07月10日 0 点赞 0 评论 113 浏览 评分:0.0
题解 1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll a[100000],b[10000…… 题解列表 2024年07月10日 0 点赞 0 评论 70 浏览 评分:0.0