1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll qinhe(ll x){ l…… 题解列表 2024年07月10日 0 点赞 0 评论 486 浏览 评分:0.0
1157: 亲和数 ```cpp#includeusingnamespacestd;intqhs(intx,inty){inta=0,b=0;for(inti=1;i 题解列表 2024年07月25日 0 点赞 0 评论 389 浏览 评分:0.0
亲和数c++语言 摘要:#include<iostream> using namespace std; int Yue(int n) { int sum = 0; for (int i = 1; i < n;…… 题解列表 2024年10月19日 0 点赞 0 评论 499 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a,b,n,sum1=0,sum2=0; scanf("%d",&n); whil…… 题解列表 2024年11月21日 0 点赞 0 评论 505 浏览 评分:0.0
2025元旦快乐,马原背了吗 摘要:解题思路:#include<stdio.h> int factsum(int n); int judge(int a,int b); int main(void) { int a, …… 题解列表 2024年12月31日 0 点赞 0 评论 451 浏览 评分:0.0
一目了然- 亲和数用while、for 摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&nb…… 题解列表 2025年03月12日 0 点赞 0 评论 704 浏览 评分:0.0
方法调用就行了,不难的 摘要:解题思路:方法调用就行了注意事项:参考代码:import java.util.ArrayList;import java.util.Scanner;public class Main { …… 题解列表 2025年12月01日 0 点赞 0 评论 358 浏览 评分:0.0
自定义函数判断亲和数 解题思路:亲和数的判断可以自定义函数实现,输入两个变量分别求其真约数,累加之后互相比较。然后主函数中调用判断即可注意事项:我采用VS写代码,所以会有#define那一行,是为了正常使用scanf函数,其它IDE或者oj写代码可忽略参考代码:#define_CRT_SECURE_NO_WARNINGS1 题解列表 2026年07月22日 0 点赞 0 评论 66 浏览 评分:0.0