[编程入门]自定义函数之字符提取-题解(C++代码) 摘要:解题思路:本题可以使用switch语句,对输入的字符串的每一项进行判断,如果与元音字母相同,那么就输出此字符.所以我们先定义一个数组,用来装元音字母.在输入一个字符串,从首位开始判断,如果s[i]是元…… 题解列表 2021年02月04日 0 点赞 1 评论 262 浏览 评分:6.0
[编程入门]二进制移位练习-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int j,a,i,str[20]; int sum=0; scanf("%d",&a); for(i=0;a!…… 题解列表 2021年02月04日 0 点赞 1 评论 769 浏览 评分:8.0
C语言训练-"水仙花数"问题2-题解(C语言代码) 摘要:解题思路:首先,水仙花数是一个三位数,因此我们需要先限定条件;然后,要满足每位的立方之和等于它本身。参考代码:#include<stdio.h>void main(){ int n,a,b,c;…… 题解列表 2021年02月04日 0 点赞 0 评论 378 浏览 评分:9.9
蓝桥杯算法提高VIP-数的划分-题解(C++代码)动态规划DP 摘要:我将一部分数据打印出来,便于大家理解  dp[i][j]的意思是用前i个数表示j 那么我们…… 题解列表 2021年02月04日 0 点赞 2 评论 686 浏览 评分:8.7
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:参考代码:# include <stdio.h> int main() { int a, mask = 1, count = 1; scanf("%d", &a); int t = …… 题解列表 2021年02月04日 0 点赞 0 评论 179 浏览 评分:0.0
小九九-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j; int a[9]={1,2,3,4,5,6,7,8,9}; int b[9]={1,2,3,4…… 题解列表 2021年02月04日 0 点赞 0 评论 194 浏览 评分:0.0
拆分位数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a,b,c; scanf("%d",&n); a=n%10; b=n/10%10; c=n…… 题解列表 2021年02月04日 0 点赞 0 评论 213 浏览 评分:0.0
C语言训练-斐波纳契数列-题解(C语言代码) 摘要:解题思路:交换相加的值就好,让每一次相加得到的数据在返回上一步注意事项:要对数据初始化参考代码:#include<stdio.h> int main() { int i,N,n=1,m=0,t…… 题解列表 2021年02月04日 0 点赞 0 评论 419 浏览 评分:9.9
C语言训练-求函数值-题解(C语言代码) 摘要:解题思路:没啥思路,比较简单注意事项:没啥需要注意的参考代码:#include<stdio.h> int main() { int i,x,y=0; //定义中间变量 scanf("%…… 题解列表 2021年02月04日 0 点赞 0 评论 342 浏览 评分:9.0
蓝桥杯基础练习VIP-Huffuman树-题解(C++代码) 摘要:参考代码:#include<iostream> #include<algorithm> #include<functional> using namespace std; int main…… 题解列表 2021年02月03日 0 点赞 0 评论 202 浏览 评分:0.0