试除法------------------------------------------ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <vector>#include <algorithm>using namesp…… 题解列表 2025年03月18日 1 点赞 0 评论 454 浏览 评分:0.0
找完数(C) 摘要:解题思路:先判断完数,再找因子,程序虽然时间上不是最短,但是思路简单注意事项:参考代码:#include<stdio.h>int Isright(int n);int main(){&nb…… 题解列表 2025年03月18日 3 点赞 0 评论 1190 浏览 评分:0.0
完数的判断,开始看看了 摘要:解题思路:注意事项:参考代码:import math#完数n=int(input())for i in range(2,n+1):#1到N之间的完数,1的因数是本身,完数的因数不包含本身 …… 题解列表 2025年04月09日 0 点赞 0 评论 835 浏览 评分:0.0
1017:完数的判断-C语言 摘要:解题思路:注意事项:参考代码:int isRight(int n){ int sum=0; int i; for(i=1;…… 题解列表 2025年10月23日 1 点赞 0 评论 586 浏览 评分:0.0
两个for循环解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,sum,n; scanf(&…… 题解列表 2025年11月03日 7 点赞 1 评论 493 浏览 评分:0.0
c++ 400ms以内 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >> n; for (i…… 题解列表 2025年11月06日 1 点赞 0 评论 310 浏览 评分:0.0
编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int get(int n,int facs[]){ if(n<6){ return 0; } int sum=0;…… 题解列表 2025年11月22日 0 点赞 0 评论 521 浏览 评分:0.0