思路清晰了,慢慢实现就好 voidFun(intn)//判断是否为完全数,以及输出其因子{intarr[100]={0};//100大小就可以了intsum=0;intk=0;for(inti=1;i 题解列表 2022年11月10日 0 点赞 0 评论 452 浏览 评分: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 评论 406 浏览 评分:0.0
1017: [编程入门]完数的判断 ```cpp#includeintn,i,sum=0,a[1000],j=0;voidyin(intn){j=0;sum=0;for(i=1;i 题解列表 2022年12月07日 0 点赞 0 评论 497 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,sum,a; cin>>n; int list[100]…… 题解列表 2023年01月06日 0 点赞 0 评论 425 浏览 评分:0.0
完数的判断 c++代码 #include#include#includeusingnamespacestd;signedmain(){ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);intn;cin>>n;for(inti=2;i 题解列表 2023年01月11日 0 点赞 0 评论 472 浏览 评分: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 评论 384 浏览 评分: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 评论 442 浏览 评分:0.0
分解质因子并保存 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void isWanshu(int n){ int sum=0,k = 0; …… 题解列表 2023年03月09日 0 点赞 0 评论 492 浏览 评分:0.0
1017: [编程入门]完数的判断(新手) 摘要:解题思路:其实思路还是比较简单明确的,主要在于减少循环次数,减少运行时间参考代码:N=int(input()) for i in range(6,N+1): #从6开始,减少循环次数 a…… 题解列表 2023年03月30日 0 点赞 0 评论 663 浏览 评分:0.0
1017题: 完数的判断 摘要:# 自己写的代码 ```c #include int main(){ int n; scanf("%d",&n); for(int i=1;i…… 题解列表 2023年04月27日 0 点赞 0 评论 515 浏览 评分:0.0