题解 1157: 亲和数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

优质题解

1157: 亲和数

摘要:##1157: 亲和数:tw-1f366: ######这道题很简单,我写的也很简单,看一眼就懂 ###题目描述 古希腊数学家毕达哥拉斯在自然数研究中发现,220的所有真约数(即不是自身的约数)……

亲和数 简单直接的解答

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int M; scanf("%d", &M); while (M--) { int A, B; int sum……

1157基础解法(Python)

摘要:解题思路:暴力解法注意事项:注意范围即可参考代码:n = int(input())for i in range(n) :    lst_0 = []    lst_1 = []    data = l……

亲和数(超简单C++)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int f(int n)       //求约数和 {     int i,s=0……

1157: 亲和数

摘要:```cpp #include #include using namespace std; int main() { int i,M,j,k; cin>>M; ……

亲和数c++题解

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int k;    cin>>k;    int m,n;   ……

1157: 亲和数

摘要:解题思路:       ①在while 循环外 规定计数变量初值h,           在while循环内  将变量h++(每输入一次A,B),直至变量h>=M(结束输入A,B的值)       ②……