[编程入门]完数的判断(含解题思路) 摘要:##[编程入门]完数的判断 ```c #include int main() { int i,b[5000],p=0,s=0; int n,j; scanf("%d",&j); …… 题解列表 2022年03月18日 0 点赞 0 评论 560 浏览 评分:0.0
投机取巧的办法(直接清空控制台,但是无法通过此oj) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h> int main(){ int n,i,sum=0; scanf("%d",&n); printf…… 题解列表 2022年03月19日 0 点赞 0 评论 511 浏览 评分:0.0
暴力解法-完数的判断 摘要:#include<stdio.h> int main() { int n; scanf("%d",&n); void print(int m); for(int i=1;i<n;i…… 题解列表 2022年03月25日 0 点赞 0 评论 464 浏览 评分:0.0
简易for循环+数组解决傻瓜式教学 摘要:解题思路:第一层for循环遍历1~N所有数字,第二层for循环在每一个遍历的数字中查找因数,并用数组存储因数,之后在用if确定是否是完数而是否输出其因数即可。注意事项:在第一层每一次的for循环中要把…… 题解列表 2022年03月28日 0 点赞 0 评论 649 浏览 评分:0.0
完数的判断 题解 摘要:解题思路:没什么好说的。直接看程序吧。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a[100005];int main()…… 题解列表 2022年05月06日 0 点赞 0 评论 343 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int N; cin>>N; for(int…… 题解列表 2022年05月10日 0 点赞 0 评论 320 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:import java.io.*; import java.util.ArrayList; public class Main { public static BufferedRea…… 题解列表 2022年05月11日 0 点赞 0 评论 513 浏览 评分:0.0
用了C++中的vector数组 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<vector>using namespace std;vector<int> arr;bool method1(in…… 题解列表 2022年05月13日 0 点赞 0 评论 352 浏览 评分:0.0
1017: [编程入门]完数的判断 摘要:#include<stdio.h> int ws(int x){ int sum=0,ls[10000],j=0; for(int i=1;i<=(x/2+1);i++){ …… 题解列表 2022年06月06日 0 点赞 0 评论 278 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考了作者SuperJoker的代码,觉得能再优化点,把 i 改为 i/2;参考代码:i#include<bits/stdc++.h>using namespace std;in…… 题解列表 2022年06月09日 0 点赞 0 评论 377 浏览 评分:0.0