[编程入门]结构体之成绩统计2-题解(C语言代码)三个函数解决 摘要:```c #include #include typedef struct data { char no[20]; char name[20]; int score[3]; } S…… 题解列表 2020年03月15日 0 点赞 0 评论 666 浏览 评分:9.0
公交汽车-题解(C语言代码) 简单易懂! 摘要: #include //等效为背包问题 ,把1到10这十个路程看作十个物品,它们的编号和容量等于他们的值,如1公里就是编号为1,容量为1的物品 int load[12]; …… 题解列表 2020年03月16日 0 点赞 0 评论 1387 浏览 评分:9.0
姓名排序-题解(C++代码) 摘要:```cpp #include #include #include #include using namespace std; int cmp(string a,string …… 题解列表 2020年03月16日 0 点赞 0 评论 1115 浏览 评分: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 评论 1166 浏览 评分: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 评论 685 浏览 评分:9.0
蓝桥杯算法训练VIP-数组查找及替换-题解(Python代码) 摘要:这道题主要考察对字母转数字的使用,这里我们要使用到chr()函数来把数字转换为字母,由于题目中指出,如果数字ASCII对于字母处在A-Z之间,则直接输出字母。 这道题要求删除被b整除的数,我们可以直…… 题解列表 2020年03月18日 0 点赞 0 评论 1695 浏览 评分:9.0
蓝桥杯算法训练VIP-王、后传说-题解(C++代码) 摘要: #include #include using namespace std; bool vis[14][14];//国王辐射范围 …… 题解列表 2020年03月18日 0 点赞 0 评论 956 浏览 评分: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 评论 818 浏览 评分:9.0
增添战力-题解(C语言代码) 摘要:本题可以使用贪心算法求解,我的计算方法是: 1.将输入的各豪杰战力排个序(我是插入排序从小到大排的); 2.比较两座城池所需豪杰数量,将战力最靠强的豪杰分配到需求量较少的城池去,然后将剩下战力最强…… 题解列表 2020年03月22日 0 点赞 2 评论 1133 浏览 评分:9.0
[编程入门]宏定义之找最大数-题解(Python代码)两行代码解决 摘要:对于Python来说 代码能简洁就简洁化 index把输入的内容保存到一个列表当中 输出的时候采用max()方法即可 ```python index = list(map(int,input…… 题解列表 2020年03月22日 0 点赞 0 评论 843 浏览 评分:9.0