蓝桥杯算法提高VIP-和最大子序列 (C语言代码) 摘要:解题思路: 其实就是一个字段最大和的问题注意事项:参考代码:#include <stdio.h>int a[100002],maxsum[100002];int max(int a,int b){ i…… 题解列表 2019年03月19日 0 点赞 0 评论 1024 浏览 评分:7.3
C语言训练-素数问题 (C语言代码) 摘要:解题思路:参考代码:#include <stdio.h>void main(){ int m; int count=1; scanf("%d",&m); for(int…… 题解列表 2019年03月20日 1 点赞 0 评论 1114 浏览 评分:7.3
。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#includeint ss(int a); int main() { int a; scanf("%d",&a); if(ss(a)=…… 题解列表 2019年03月25日 2 点赞 0 评论 1176 浏览 评分:7.3
蓝桥杯算法提高VIP-数组替换 (C++代码)不想写函数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int v1,v2,t,s,l; int n,m; int a[1000…… 题解列表 2019年03月30日 0 点赞 0 评论 1040 浏览 评分:7.3
防御导弹 (C语言代码) 摘要:解题思路:每一个数都可以有选与不选两种可能,一直递归到最后没有数可选的时候的长度就是最大长度,红色的数字就是最大长度的选择过程(不太会电脑画图,所以图没有画全)注意事项:1.opt(0)下面的 选与…… 题解列表 2019年04月02日 1 点赞 2 评论 1404 浏览 评分:7.3
回文判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[1000]; int i,j,len; ge…… 题解列表 2019年04月04日 0 点赞 0 评论 1674 浏览 评分:7.3
最小三个数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,s,a[100],n,t; &nb 题解列表 2019年04月11日 0 点赞 0 评论 781 浏览 评分:7.3
陶陶摘苹果 (C++)(看看吧!!) 摘要:解题思路:用循环语句和选择语句注意事项:注意数组的范围等参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ i…… 题解列表 2019年04月12日 1 点赞 0 评论 873 浏览 评分:7.3
C语言训练-斐波纳契数列 (C++代码)(迭代法!!看看吧!!) 摘要:解题思路:使用迭代法求解注意事项:注意格式要求 需要' '来表达空格,题目的N<40的限制可以不用管参考代码:#include<iostream>using namespace st…… 题解列表 2019年04月13日 1 点赞 0 评论 1264 浏览 评分:7.3
[编程入门]自定义函数之字符串反转 (C语言代码) 摘要:解题思路:本题考查字符串与数组与函数的应用把前半数字符串和后半数字符串数值交换注意事项:需要用到字符串函数去测量字符串的长度,把前半数字符串和后半数字符串数值交换交换只进行一次,故循环减半看清题目,题…… 题解列表 2019年04月13日 2 点赞 0 评论 1484 浏览 评分:7.3