思路清晰了,慢慢实现就好 摘要: void Fun(int n)// 判断是否为完全数,以及输出其因子 { int arr[100] = { 0 };// 100大小就可以了 int sum = 0; int …… 题解列表 2022年11月10日 0 点赞 0 评论 139 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum,N; scanf("%d",&N); for(i=1;i<=N;i++) { …… 题解列表 2022年11月23日 0 点赞 0 评论 97 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:```cpp #include int n,i,sum=0,a[1000],j=0; void yin(int n) { j=0; sum=0; for(i=1;i…… 题解列表 2022年12月07日 0 点赞 0 评论 126 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,sum,a; cin>>n; int list[100]…… 题解列表 2023年01月06日 0 点赞 0 评论 100 浏览 评分:0.0
完数的判断 c++代码 摘要: #include #include #include using namespace std; signed main()…… 题解列表 2023年01月11日 0 点赞 0 评论 140 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,t=0; scanf("%d", &n); for (t = 2; t < n; t++) { i…… 题解列表 2023年02月01日 0 点赞 0 评论 120 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:````c #include #define max 1001 int main() { int n,i,j,a[max],l; scanf("%d",&n); f…… 题解列表 2023年03月02日 0 点赞 0 评论 118 浏览 评分:0.0
分解质因子并保存 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void isWanshu(int n){ int sum=0,k = 0; …… 题解列表 2023年03月09日 0 点赞 0 评论 126 浏览 评分:0.0
1017: [编程入门]完数的判断(新手) 摘要:解题思路:其实思路还是比较简单明确的,主要在于减少循环次数,减少运行时间参考代码:N=int(input()) for i in range(6,N+1): #从6开始,减少循环次数 a…… 题解列表 2023年03月30日 0 点赞 0 评论 217 浏览 评分:0.0
1017题: 完数的判断 摘要:# 自己写的代码 ```c #include int main(){ int n; scanf("%d",&n); for(int i=1;i…… 题解列表 2023年04月27日 0 点赞 0 评论 126 浏览 评分:0.0