1157基础解法(Python) 摘要:解题思路:暴力解法注意事项:注意范围即可参考代码:n = int(input())for i in range(n) : lst_0 = [] lst_1 = [] data = l…… 题解列表 2022年11月09日 0 点赞 0 评论 355 浏览 评分:0.0
编写题解 1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int judge(int n,int m){ int i=0; int sum=0;…… 题解列表 2023年01月04日 0 点赞 0 评论 307 浏览 评分:0.0
亲和数(二维数组) 摘要:解题思路:利用函数求出所传值的各因子之和注意事项:参考代码:#include<stdio.h>int s(int n){ int sum=0; for(int i=1;i<n;…… 题解列表 2023年01月13日 0 点赞 0 评论 335 浏览 评分:0.0
亲和数(python代码) 摘要:def cal(x): total = 0 for i in range(1,x): if x%i==0: &nb 题解列表 2023年01月14日 0 点赞 2 评论 205 浏览 评分:0.0
亲和数(水题) 摘要:```c #include long long f(int n){ long long i,sum=0; for(i=1;i…… 题解列表 2023年02月02日 0 点赞 0 评论 405 浏览 评分:0.0
亲和数——一个数的因子和等于另一个数 摘要:解题思路:注意事项:前面那个数的因子和不包括它本身参考代码:def yzh(n): L = [1] for i in range(2,n): if n%i == 0: …… 题解列表 2023年03月19日 0 点赞 0 评论 398 浏览 评分:0.0
1157:亲和数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int f(int t){ int sum=1,k; for(…… 题解列表 2023年04月02日 0 点赞 0 评论 367 浏览 评分:0.0
1157: 亲和数m. 摘要:解题思路:注意事项:参考代码:package function; import java.util.Scanner; //题目 1157: 亲和数 public class t_1157 { …… 题解列表 2024年02月20日 0 点赞 0 评论 277 浏览 评分:0.0
1157亲和数(简单的统计约数求和) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin >> N; while (N) { int a…… 题解列表 2024年07月09日 0 点赞 0 评论 379 浏览 评分:0.0
题解 1157: 亲和数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll a[100000],b[10000…… 题解列表 2024年07月10日 0 点赞 0 评论 279 浏览 评分:0.0