输出N以内的所有完数1017 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N,i,j,s; scanf("%d",&N); for(i=2;i<N;i++) { s=0; f…… 题解列表 2022年11月06日 0 点赞 0 评论 244 浏览 评分:0.0
完数的判断(一般解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i,j,a[100],m,x; int N,s; scanf…… 题解列表 2022年11月09日 0 点赞 0 评论 189 浏览 评分:0.0
思路清晰了,慢慢实现就好 摘要: void Fun(int n)// 判断是否为完全数,以及输出其因子 { int arr[100] = { 0 };// 100大小就可以了 int sum = 0; int …… 题解列表 2022年11月10日 0 点赞 0 评论 257 浏览 评分: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 评论 189 浏览 评分: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 评论 261 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,sum,a; cin>>n; int list[100]…… 题解列表 2023年01月06日 0 点赞 0 评论 229 浏览 评分:0.0
完数的判断 c++代码 摘要: #include #include #include using namespace std; signed main()…… 题解列表 2023年01月11日 0 点赞 0 评论 263 浏览 评分: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 评论 226 浏览 评分: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 评论 251 浏览 评分:0.0
分解质因子并保存 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void isWanshu(int n){ int sum=0,k = 0; …… 题解列表 2023年03月09日 0 点赞 0 评论 265 浏览 评分:0.0