[编程入门]自定义函数之字符串反转-题解(C语言代码) 摘要:#include #include int main() { int i,j; char a[100]; j=strlen(gets(a)); for(i…… 题解列表 2020年05月27日 0 点赞 0 评论 615 浏览 评分:2.0
[编程入门]自定义函数之字符串连接-题解(C语言代码) 摘要:#include #include int main(){ char str1[101]; char str2[100]; gets(str1); ge…… 题解列表 2020年05月27日 0 点赞 0 评论 630 浏览 评分:2.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要: #include int main(void) { int n, Sn = 0; scanf("%d", &n); f…… 题解列表 2020年06月05日 0 点赞 0 评论 894 浏览 评分:2.0
求长方形面积-题解(C++代码) 摘要:``` cpp #include using namespace std; int rectangle() { int w = 0; int h = 0; c…… 题解列表 2020年06月16日 0 点赞 0 评论 684 浏览 评分:2.0
蓝桥杯算法提高VIP-01背包-题解(Java代码) 摘要: import java.util.Scanner; public class brackback { static int W; static int number; sta…… 题解列表 2020年06月17日 0 点赞 0 评论 791 浏览 评分:2.0
蓝桥杯算法训练VIP-拦截导弹-题解(C语言代码) 摘要:### 用的比较笨的方法,每次都进行最长不上升序列子序列 进行标记判断,直到全部标记为1为止,然后退出,记录有几次最长不上升序列子序列。 ```c++ #include #incl…… 题解列表 2020年06月19日 0 点赞 0 评论 847 浏览 评分:2.0
蓝桥杯算法提高VIP-凶手-题解(C++代码)自己推理,直接输出结果 摘要:``` #include #include using namespace std; int main() { cout…… 题解列表 2020年06月21日 0 点赞 0 评论 690 浏览 评分:2.0
蓝桥杯算法训练VIP-数组查找及替换-题解(Python代码) 摘要:解题思路: 创建一个列表,在列表中进行对能够整除b的值进行remove,然后用sort排序输出注意事项: 如果不新建一个list2的话,在语句for i in list1(2) 出会出现问题,因为循环…… 题解列表 2020年07月06日 0 点赞 0 评论 676 浏览 评分:2.0
[编程入门]筛选N以内的素数-题解(C++代码) 摘要:解题思路:将N以内的所有数保存到数组中,用0代表不是素数,从2开始遍历数组,用当前的素数去遍历后面能被素数整除的则不为素数。最后将不为0的数输出。注意事项:参考代码:#include<iostream…… 题解列表 2020年07月10日 0 点赞 0 评论 1199 浏览 评分:2.0
蓝桥杯算法提高VIP-分苹果-题解(C语言代码) 摘要:## 解题思路: 根据题意:第i个老师会给第Li个到第Ri个,一共Ri-Li+1个小朋友每人发Ci个苹果。可以列出 ``` scanf("%d%d%d",&Li,&Ri,&Ci); …… 题解列表 2020年07月13日 0 点赞 0 评论 762 浏览 评分:2.0