蓝桥杯算法训练VIP-数组查找及替换-题解(Python代码) 摘要:这道题主要考察对字母转数字的使用,这里我们要使用到chr()函数来把数字转换为字母,由于题目中指出,如果数字ASCII对于字母处在A-Z之间,则直接输出字母。 这道题要求删除被b整除的数,我们可以直…… 题解列表 2020年03月18日 0 点赞 0 评论 1845 浏览 评分:9.0
蓝桥杯算法训练VIP-王、后传说-题解(C++代码) 摘要: #include #include using namespace std; bool vis[14][14];//国王辐射范围 …… 题解列表 2020年03月18日 0 点赞 0 评论 1066 浏览 评分: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 评论 895 浏览 评分:9.0
增添战力-题解(C语言代码) 摘要:本题可以使用贪心算法求解,我的计算方法是: 1.将输入的各豪杰战力排个序(我是插入排序从小到大排的); 2.比较两座城池所需豪杰数量,将战力最靠强的豪杰分配到需求量较少的城池去,然后将剩下战力最强…… 题解列表 2020年03月22日 0 点赞 2 评论 1237 浏览 评分:9.0
[编程入门]宏定义之找最大数-题解(Python代码)两行代码解决 摘要:对于Python来说 代码能简洁就简洁化 index把输入的内容保存到一个列表当中 输出的时候采用max()方法即可 ```python index = list(map(int,input…… 题解列表 2020年03月22日 0 点赞 0 评论 944 浏览 评分:9.0
狂猎来袭 (另一种解法)(C++代码) 摘要:# 狂猎来袭题解 ## 题目链接 [https://www.dotcpp.com/oj/problem2103.html](https://www.dotcpp.com/oj/proble…… 题解列表 2020年03月23日 0 点赞 0 评论 960 浏览 评分:9.0
蓝桥杯算法提高VIP-删除重复元素-题解(C++超简单题解) 摘要:## 桶排 ```cpp #include #include using namespace std; // 利用桶排能够轻松做到去重的效果 int bucket[300]; …… 题解列表 2020年03月23日 0 点赞 0 评论 946 浏览 评分:9.0
杨辉三角-题解(C语言代码) 摘要:#include #include #define N 265716 int main(){ int a[30][30] = {-1},i,j,num; while(sca…… 题解列表 2020年03月24日 0 点赞 0 评论 910 浏览 评分:9.0
二级C语言-温度转换-题解(C语言代码) 摘要:float : scanf %f ; printf %f double : scanf %f ; printf %f %lf (lf不是if) %.2f…… 题解列表 2020年03月25日 0 点赞 1 评论 1091 浏览 评分:9.0
[编程入门]利润计算-题解(C语言代码) 摘要:这道题用if和else if这样解,代码如下: ```c #include int main() { int a,x;//定义a为奖金,x为当月利润 scanf("%d",…… 题解列表 2020年03月25日 0 点赞 0 评论 961 浏览 评分:9.0