1017: [编程入门]完数的判断 摘要:####这是一个有意思的题目,为此我还去了解了一下完数的历史,古希腊学家欧几里得在两千多年前就发现了完美数,并且提出了完全数的基本原理,但是他最初只知道四个完美数即6 28 496 8128,从那时起…… 题解列表 2023年02月25日 0 点赞 1 评论 363 浏览 评分:9.9
完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,t=0; scanf("%d", &n); for (t = 2; t < n; t++) { i…… 题解列表 2023年02月01日 0 点赞 0 评论 269 浏览 评分:0.0
完数的判断 c++代码 摘要: #include #include #include using namespace std; signed main()…… 题解列表 2023年01月11日 0 点赞 0 评论 330 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int n,sum,a; cin>>n; int list[100]…… 题解列表 2023年01月06日 0 点赞 0 评论 284 浏览 评分:0.0
完数的判断——题解(C语言代码) 不用指针不用数组,仅for循环嵌套即可 摘要:解题思路:需要用到两个临时变量i j;j用来排1~n的所有整数,i用来排1~j的所有整数(以获取其所有可能的因数)。注意事项:注意b一定要在合适的位置清零参考代码:#includeint main(v…… 题解列表 2023年01月02日 0 点赞 0 评论 433 浏览 评分:9.9
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:// [编程入门]完数的判断 #include<stdio.h> int fun(int n); void func(int x); int main() { …… 题解列表 2023年01月01日 0 点赞 0 评论 304 浏览 评分:9.9
[编程入门]完数的判断 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int main(void){ int n; int len=0; int arr[…… 题解列表 2022年12月09日 0 点赞 0 评论 248 浏览 评分:9.9
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 评论 321 浏览 评分: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 评论 256 浏览 评分:0.0
完数的判断,数组 摘要:解题思路:1.通过遍历找出n(要判断的数)的所有非本身的因子i。例如n=6,则找出i为1,2,32、将找出的i先放入数组里面,同时将i累加起来记做k3、比较k和n的值,如果相等,则break跳出循环输…… 题解列表 2022年11月14日 0 点赞 0 评论 417 浏览 评分:9.9