1153: C语言训练-谁家孩子跑最慢* 摘要:解题思路:题目有四个条件 1.李家的孩子最高分是9,王家的孩子最高分是8;2.每一家孩子得分不相邻;3.每一家得分相同(1+……+9=45 45/3=15)即每一家总分是15;4.没有得分相同的孩子…… 题解列表 2021年12月29日 0 点赞 0 评论 555 浏览 评分:9.9
编写题解 1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:s=c=0 while True: try: a,b=map(int,input().split()) s += a c += b excep…… 题解列表 2021年12月29日 0 点赞 0 评论 829 浏览 评分:9.9
586: 蓝桥杯算法训练VIP-A+B problem 摘要:解题思路:注意事项:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: …… 题解列表 2021年12月29日 0 点赞 0 评论 363 浏览 评分:9.9
1636: 蓝桥杯算法训练VIP-整除问题 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split()) for i in range(a,b+1): if i % c ==0: …… 题解列表 2021年12月29日 0 点赞 0 评论 434 浏览 评分:9.9
1867: 王牌花色 摘要:解题思路:看了一些题解,感觉有些难理解,对于这道题我们只需要使用if判断就可以了我们已经知道牌面由大小和花色组成,所以只需要开辟两组数组存放就可以了,先比较花色,如果都是王牌花色则比较放在第一个单位的…… 题解列表 2021年12月29日 0 点赞 2 评论 664 浏览 评分:9.9
it's a piece of cake 摘要:解题思路:注意事项:注意c语言的基本要求规范即可参考代码:// 求出10至1000之内能同时被2、3、7整除的数,并输出。#include <stdio.h>int main(){ int n …… 题解列表 2021年12月29日 0 点赞 1 评论 316 浏览 评分:9.9
比较基础的一题 摘要:解题思路:注意事项:参考代码:// 从键盘输入任意20个整型数,统计其中的负数个数并求所有正数的平均值。// 保留两位小数#include <stdio.h>int main(){ int n …… 题解列表 2021年12月29日 0 点赞 0 评论 715 浏览 评分:9.9
2284-耐摔指数(动态规划)-c语言 摘要:#include<stdio.h> #define M 20000 int max(int a,int b) { return a>b?a:b; } int min(int a,int …… 题解列表 2021年12月29日 0 点赞 0 评论 1279 浏览 评分:9.9
1675: 数据结构-Big Bang-C语言 摘要:```c #include #include #include #define max 20 typedef struct node{ char name[max]; …… 题解列表 2021年12月29日 0 点赞 0 评论 425 浏览 评分:9.9
1674: 数据结构-有序线性表的有序合并-C语言 摘要:```c //有序线性表的有序合并 //思路是合并后对合并后的链表进行排序 #include #include typedef struct node { int data;…… 题解列表 2021年12月29日 0 点赞 0 评论 784 浏览 评分:9.9