分解质因数 一种用素数判断 一种无需判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;//判断是否是素数bool check(int …… 题解列表 2025年02月17日 0 点赞 0 评论 181 浏览 评分:0.0
Python代码-8除不尽的数 摘要:```pythondef check(n): if n % 8 == 1: if (n//8) % 8 == 1: if (n//8//8) …… 题解列表 2025年02月15日 0 点赞 0 评论 145 浏览 评分:0.0
Python代码-报数问题 摘要:```pythonfrom collections import dequeif __name__ == '__main__': n = int(input()) qu…… 题解列表 2025年02月17日 0 点赞 0 评论 214 浏览 评分:0.0
Python代码-求矩阵的两对角线上的元素之和 摘要:```pythonif __name__ == '__main__': N = int(input()) nums = [] for i in range(N):…… 题解列表 2025年02月17日 0 点赞 0 评论 142 浏览 评分:0.0
Python代码-去掉空格 摘要:```pythonif __name__ == '__main__': while True: try: str1 = str(input()…… 题解列表 2025年02月17日 0 点赞 0 评论 140 浏览 评分:0.0
一个有点复杂的方法,不如其他大佬的优质解法(本人刚起步学习哈) 摘要:#includeint main(void){ int num; scanf("%d",&num); int a[num]; for(int…… 题解列表 2025年02月17日 0 点赞 0 评论 306 浏览 评分:0.0
stricmp用不了,换普通解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<stdio.h>using namespace std;i…… 题解列表 2025年02月18日 0 点赞 0 评论 148 浏览 评分:0.0
判断一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>//判断一个数是否为质数int&…… 题解列表 2025年02月18日 0 点赞 0 评论 220 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>intzhishu(inti){&nbs…… 题解列表 2025年02月18日 0 点赞 0 评论 635 浏览 评分:0.0