姓名排序-题解(C++代码) 摘要:```cpp #include #include #include #include using namespace std; int cmp(string a,string …… 题解列表 2020年03月16日 0 点赞 0 评论 1128 浏览 评分:9.0
二级C语言-寻找矩阵最值-题解(C语言代码) 摘要: ```c #include int main() { int a[6][6]; int N,row,line; row = line = 0; scanf("%d",…… 题解列表 2020年03月17日 0 点赞 0 评论 1185 浏览 评分:9.0
[编程入门]最大公约数与最小公倍数-题解(Python代码) 摘要: a,b=map(int,input().split()) x=min(a,b) o1=[] o2=[] for i in range(1,x+1): if a%i==0 and …… 题解列表 2020年03月18日 0 点赞 0 评论 695 浏览 评分:9.0
蓝桥杯算法训练VIP-数组查找及替换-题解(Python代码) 摘要:这道题主要考察对字母转数字的使用,这里我们要使用到chr()函数来把数字转换为字母,由于题目中指出,如果数字ASCII对于字母处在A-Z之间,则直接输出字母。 这道题要求删除被b整除的数,我们可以直…… 题解列表 2020年03月18日 0 点赞 0 评论 1712 浏览 评分:9.0
蓝桥杯算法训练VIP-王、后传说-题解(C++代码) 摘要: #include #include using namespace std; bool vis[14][14];//国王辐射范围 …… 题解列表 2020年03月18日 0 点赞 0 评论 968 浏览 评分:9.0
蓝桥杯算法提高VIP-阮小二买彩票-题解(Java代码) 摘要:```java static int b[]=new int[12]; static int c[]=new int[12]; static int a[]=new int[12]; s…… 题解列表 2020年03月21日 0 点赞 0 评论 824 浏览 评分:9.0
增添战力-题解(C语言代码) 摘要:本题可以使用贪心算法求解,我的计算方法是: 1.将输入的各豪杰战力排个序(我是插入排序从小到大排的); 2.比较两座城池所需豪杰数量,将战力最靠强的豪杰分配到需求量较少的城池去,然后将剩下战力最强…… 题解列表 2020年03月22日 0 点赞 2 评论 1148 浏览 评分:9.0
[编程入门]宏定义之找最大数-题解(Python代码)两行代码解决 摘要:对于Python来说 代码能简洁就简洁化 index把输入的内容保存到一个列表当中 输出的时候采用max()方法即可 ```python index = list(map(int,input…… 题解列表 2020年03月22日 0 点赞 0 评论 853 浏览 评分:9.0
狂猎来袭 (另一种解法)(C++代码) 摘要:# 狂猎来袭题解 ## 题目链接 [https://www.dotcpp.com/oj/problem2103.html](https://www.dotcpp.com/oj/proble…… 题解列表 2020年03月23日 0 点赞 0 评论 853 浏览 评分:9.0
蓝桥杯算法提高VIP-删除重复元素-题解(C++超简单题解) 摘要:## 桶排 ```cpp #include #include using namespace std; // 利用桶排能够轻松做到去重的效果 int bucket[300]; …… 题解列表 2020年03月23日 0 点赞 0 评论 868 浏览 评分:9.0