python : 暴力解题,非常简单,初学者友好 解题思路:注意事项:我是Python初学者,我的C语言思维比较严重!!!参考代码:c=int(input())n=0ko=[]//我把这个空列表当C语言数组使用了forkinrange(2,10):ifc%k==0:ko.append(k)n+=1ifn==0:print("none")else:pr 题解列表 2025年03月06日 0 点赞 0 评论 765 浏览 评分:0.0
大整数的因子(注意高位的余数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void m(int *a1,char a[],int len_a)//a1用指针传递回主函…… 题解列表 2023年10月20日 0 点赞 0 评论 593 浏览 评分:0.0
我直接ifififif 摘要:```cpp#include #include using namespace std;int main(){ string s; int a[50]={0},…… 题解列表 2025年02月18日 0 点赞 0 评论 486 浏览 评分:0.0
大整数因子 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int c[30],l,i,j,yu,cn=0,n[9]; char a[3…… 题解列表 2024年10月10日 0 点赞 0 评论 566 浏览 评分:0.0
2844: 大整数的因子 摘要:解题思路:注意事项:参考代码:flag = Truen = int(input())for i in range(2,10,1): if n % i == 0: if flag: …… 题解列表 2024年07月31日 0 点赞 0 评论 578 浏览 评分:0.0
2844: 大整数的因子 摘要:参考代码:c = int(input()) s = '' for k in range(2, 10): if c % k == 0: s += str(…… 题解列表 2024年03月21日 0 点赞 0 评论 814 浏览 评分:0.0
python--study||O.o 摘要:参考代码:c = int(input()) flag = True for i in range(2, 10): if c % i == 0: flag = False…… 题解列表 2024年04月15日 0 点赞 0 评论 763 浏览 评分:0.0
2844: 大整数的因子 (记录问题,待解决) 可以通过全部测试点的代码:```c#include#includeintmain(){charc1[31]={'0'};//注意0intc[31]={0},s,i,j,lc,found=0,count=0;//注意0scanf("%s",c1);lc=strlen(c1);//注意0、注意1与注意2f 题解列表 2024年04月27日 0 点赞 0 评论 670 浏览 评分:0.0
用字符串求大整数的因子 摘要:解题思路:用字符串输入大整数,转化为数存放到数组中。正序从高位开始求余,判断最后余数是否为0注意事项: int t=c*10+a[j];//高位余数乘10加到低位 c=t%i;/…… 题解列表 2024年05月13日 0 点赞 0 评论 575 浏览 评分:0.0
2844: 大整数的因子 (试了下重载运算符) 摘要:解题思路: 高精度,模拟大整数的输入、输出、取模。这里使用重载运算符,单纯为了好玩注意事项:注意没有合适的k的时候还要输出"none"参考代码:#include <iostream> // #inc…… 题解列表 2023年02月14日 0 点赞 0 评论 637 浏览 评分:2.0