2518: 信息学奥赛一本通T1620-质因数分解 摘要:解题思路:注意事项:参考代码:import mathdef is_qurt(n): flag = True for i in range(2,int(math.sqrt(n))+1): …… 题解列表 2024年07月31日 0 点赞 0 评论 411 浏览 评分:9.9
2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())l = l[::-1]print(" ".join(l))…… 题解列表 2024年07月31日 0 点赞 0 评论 560 浏览 评分:0.0
2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())a = b = c = d = 0for i in l: if 0 <= int(…… 题解列表 2024年07月31日 0 点赞 0 评论 272 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:使用了列表计数器,来对用到的树进行标记注意事项:参考代码:l,m=map(int,input().strip().split())lis = [i for i in range(l+1)]f…… 题解列表 2024年07月31日 0 点赞 0 评论 282 浏览 评分:0.0
最短代码解决奇偶数之和 摘要:解题思路:使用求和公式。偶数求和公式为(n / 2) * (n / 2 + 1),奇数求和公式为(n / 2) * (n / 2)或(n / 2) * (n / 2)+n。注意事项:奇数和与偶数和求和…… 题解列表 2024年07月31日 0 点赞 0 评论 161 浏览 评分:9.9
递归算法..................... 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int index=0,circle[100000],m[1000000];void factorial(int a,int j){ …… 题解列表 2024年07月31日 16 点赞 0 评论 2612 浏览 评分:9.7
1121: C语言训练-8除不尽的数 摘要:```cpp #include using namespace std; int n,a; int zrs(){ for(int i=0;;i++){ a=i/8/8/8; i…… 题解列表 2024年07月31日 0 点赞 0 评论 199 浏览 评分:9.9
2839:石头剪刀布 摘要:解题思路:注意事项:参考代码:n,a,b=map(int,input().strip().split())la = list(input().split())lb = list(input().spl…… 题解列表 2024年07月31日 0 点赞 0 评论 299 浏览 评分:9.9
2840: 向量点积计算 摘要:解题思路:注意事项:参考代码:n = int(input())la = list(map(int,input().split()))lb = list(map(int,input().split())…… 题解列表 2024年07月31日 0 点赞 0 评论 241 浏览 评分: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 评论 283 浏览 评分:0.0