586: 蓝桥杯算法训练VIP-A+B problem 摘要:解题思路:注意事项:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: …… 题解列表 2021年12月29日 0 点赞 0 评论 409 浏览 评分: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 评论 492 浏览 评分:9.9
1867: 王牌花色 摘要:解题思路:看了一些题解,感觉有些难理解,对于这道题我们只需要使用if判断就可以了我们已经知道牌面由大小和花色组成,所以只需要开辟两组数组存放就可以了,先比较花色,如果都是王牌花色则比较放在第一个单位的…… 题解列表 2021年12月29日 0 点赞 2 评论 836 浏览 评分: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 评论 365 浏览 评分:9.9
比较基础的一题 摘要:解题思路:注意事项:参考代码:// 从键盘输入任意20个整型数,统计其中的负数个数并求所有正数的平均值。// 保留两位小数#include <stdio.h>int main(){ int n …… 题解列表 2021年12月29日 0 点赞 0 评论 786 浏览 评分: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 评论 1401 浏览 评分:9.9
1675: 数据结构-Big Bang-C语言 摘要:```c #include #include #include #define max 20 typedef struct node{ char name[max]; …… 题解列表 2021年12月29日 0 点赞 0 评论 485 浏览 评分:9.9
1674: 数据结构-有序线性表的有序合并-C语言 摘要:```c //有序线性表的有序合并 //思路是合并后对合并后的链表进行排序 #include #include typedef struct node { int data;…… 题解列表 2021年12月29日 0 点赞 0 评论 850 浏览 评分:9.9
因同查找---for 摘要:解题思路:从10到1000注意事项:参考代码:#include <stdio.h>int main(){ int i=10; scanf("%d",&i); for (i=10;i<=1000;i++…… 题解列表 2021年12月29日 0 点赞 6 评论 1036 浏览 评分:9.9
1723: 求最大值-C语言 (归并排序) 摘要:```c //求最大值 #include #include void sort(int arr[], int temparr[], int left, int right); voi…… 题解列表 2021年12月29日 0 点赞 0 评论 516 浏览 评分:9.9