2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码:n = int(input())l = list(input().split())a = b = c = d = 0for i in l: if 0 <= int(…… 题解列表 2024年07月31日 0 点赞 0 评论 351 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:使用了列表计数器,来对用到的树进行标记注意事项:参考代码:l,m=map(int,input().strip().split())lis = [i for i in range(l+1)]f…… 题解列表 2024年07月31日 0 点赞 0 评论 349 浏览 评分:0.0
2840: 向量点积计算 摘要:解题思路:注意事项:参考代码:n = int(input())la = list(map(int,input().split()))lb = list(map(int,input().split())…… 题解列表 2024年07月31日 0 点赞 0 评论 316 浏览 评分: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 评论 345 浏览 评分:0.0
对于这个问题,直接用暴力算法,直接求解 摘要:解题思路:注意事项:参考代码:#include<stdlib.h>#include<stdio.h>#include<string.h>#include<math.h>int main(){ i…… 题解列表 2024年07月31日 0 点赞 0 评论 444 浏览 评分:0.0
对于这个问题,直接用找规律,然后根据规律直接求解 摘要:参考代码:#include<stdio.h>int main(){ int n; int mid; scanf("%d",&n); mid=n/2; for(int i=…… 题解列表 2024年08月01日 1 点赞 0 评论 619 浏览 评分:0.0
优质题解,有解析 摘要:解题思路:注意事项:参考代码:# 读取输入矩阵 matrix = [] for _ in range(5): row = list(map(int, input().split())) …… 题解列表 2024年08月01日 0 点赞 0 评论 369 浏览 评分:0.0
3行:万花丛中过,片叶不沾身 摘要:解题思路:摘一颗苹果,来送给你解渴注意事项:我也不知为何,伤口还没愈合参考代码:a=int(input())b=int(input())print(a*b)…… 题解列表 2024年08月01日 0 点赞 0 评论 758 浏览 评分:0.0
使用qsort函数排序 摘要:这道题坑挺多 首先,假如数组元素只有一个,那个只需要把那个元素输出,然后再输出一个-1即可,其次,这道题需要连续输入。 ```c #include #include int cmp(co…… 题解列表 2024年08月01日 0 点赞 0 评论 285 浏览 评分:0.0
方便的find查找 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n,cnt=0; cin>>n; for…… 题解列表 2024年08月01日 0 点赞 0 评论 213 浏览 评分:0.0