[编程入门]完数的判断 摘要:解题思路: 1、 //判断是否是完数 int isfullnum(int factor); 2、 //找出所有因数 int find_arr(int factor); 参考代码: #i…… 题解列表 2023年06月25日 0 点赞 0 评论 408 浏览 评分:9.9
1017-完数的判断 摘要:解题思路:简单的for循环即可实现此功能。注意事项:参考代码:void test01(int n){ int i; int j; int sum; int arr[100]; if…… 题解列表 2023年06月21日 0 点赞 0 评论 615 浏览 评分:0.0
完数的判断 摘要:#include <stdio.h> int main(){ int sum=1, i=2,y=2,N=0; scanf("%d",&N); for(i;i<=N;i++){ su…… 题解列表 2023年06月19日 0 点赞 0 评论 459 浏览 评分:0.0
完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); for(int i=2;i<=n;i++)//…… 题解列表 2023年05月28日 0 点赞 0 评论 547 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:import mathn = int(input())for i in range(6, n + 1, 2): factors = [1] sqrt_i = …… 题解列表 2023年05月22日 0 点赞 0 评论 888 浏览 评分:7.3
[编程入门]完数的判断 ```c#include#includeintFind(intn,intarr[]){memset(arr,0,sizeof(int)*200);arr[0]=1;intsum=0,j=1;for(inti=2;i 题解列表 2023年04月27日 0 点赞 0 评论 569 浏览 评分:9.9 1017题: 完数的判断 摘要:# 自己写的代码 ```c #include int main(){ int n; scanf("%d",&n); for(int i=1;i…… 题解列表 2023年04月27日 0 点赞 0 评论 516 浏览 评分:0.0 1017: [编程入门]完数的判断(新手) 摘要:解题思路:其实思路还是比较简单明确的,主要在于减少循环次数,减少运行时间参考代码:N=int(input()) for i in range(6,N+1): #从6开始,减少循环次数 a…… 题解列表 2023年03月30日 0 点赞 0 评论 665 浏览 评分:0.0 分解质因子并保存 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void isWanshu(int n){ int sum=0,k = 0; …… 题解列表 2023年03月09日 0 点赞 0 评论 493 浏览 评分:0.0 « 12...78910111213...4041 »
1017题: 完数的判断 摘要:# 自己写的代码 ```c #include int main(){ int n; scanf("%d",&n); for(int i=1;i…… 题解列表 2023年04月27日 0 点赞 0 评论 516 浏览 评分:0.0
1017: [编程入门]完数的判断(新手) 摘要:解题思路:其实思路还是比较简单明确的,主要在于减少循环次数,减少运行时间参考代码:N=int(input()) for i in range(6,N+1): #从6开始,减少循环次数 a…… 题解列表 2023年03月30日 0 点赞 0 评论 665 浏览 评分:0.0
分解质因子并保存 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void isWanshu(int n){ int sum=0,k = 0; …… 题解列表 2023年03月09日 0 点赞 0 评论 493 浏览 评分:0.0