2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:m, n = map(int, input().split()) arr = [] for _ in range(m): arr.append(list(m…… 题解列表 2024年03月29日 0 点赞 1 评论 297 浏览 评分:0.0
适合新手的代码--利用循环和判断是寻找 摘要:```cpp #include using namespace std; int main(){ int a,b; cin>>a>>b; //最大公约数:从输入数字最小的开始,到1结…… 题解列表 2024年03月29日 1 点赞 1 评论 290 浏览 评分:9.9
更小的数(暴力、区间DP) 摘要:解题思路:dotcpp上暴力能过,但acwing上暴力只能过80%,考虑到前一个对比相同时我们要去找下一个对比,所以考虑记忆化搜索,因此想到区间DP,可以知道当a[l] == a[r]时,我们直接判断…… 题解列表 2024年03月29日 2 点赞 0 评论 714 浏览 评分:10.0
阶乘的和-3166: 蓝桥杯2023年第十四届省赛真题 摘要:解题思路:注意事项:参考代码:n=int(input())a_list=list(map(int,input().split()))a_list.sort()count=dict()for i in …… 题解列表 2024年03月29日 0 点赞 0 评论 572 浏览 评分:6.0
小白随便写的,记录一下 摘要:```python def missile(li): """ 主要思路:第i个导弹开始的最大拦截数 = i+1后面所有比它小的导弹的最大拦截数 + 1 首先我们需要两个列…… 题解列表 2024年03月29日 0 点赞 0 评论 312 浏览 评分:0.0
寻找平面上的极大点 摘要:解题思路:如果一个坐标的x和y坐标都小于等于另外一个坐标,那么该坐标就不是极大点注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct …… 题解列表 2024年03月29日 0 点赞 0 评论 404 浏览 评分:2.0
100分,两种解法,一种二分法,一种前缀和 摘要:前缀和:N =int(input())c,a,b=list(map(str,input().split()))sum=0j=0k=list()for i in range(0,len(c)): …… 题解列表 2024年03月29日 0 点赞 0 评论 413 浏览 评分:0.0
1638: 蓝桥杯算法训练VIP-新生舞会-感谢STL 摘要:解题思路:map启动注意事项:参考代码:#include <bits/stdc++.h> using namespace std; map<string,char> mname; int m…… 题解列表 2024年03月29日 0 点赞 0 评论 413 浏览 评分:8.0
编写题解 2848: 基因相关性,python超简单 摘要:(python学子仔细读题哦)n = float(input()) DNA1 = input() DNA2 = input() # 比对两条DNA序列 matching_pairs = 0 …… 题解列表 2024年03月29日 0 点赞 0 评论 799 浏览 评分:4.7
数组插入处理,C++简单解 摘要:解题思路:找到要插入的地方,然后把数组从要插入的地方分开输出。注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[9]…… 题解列表 2024年03月29日 0 点赞 0 评论 317 浏览 评分:0.0