蓝桥杯算法训练VIP-整数平均值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i,n; scanf("%d",&n); int a[n],sum=0,*p; …… 题解列表 2019年05月23日 0 点赞 0 评论 622 浏览 评分:0.0
[竞赛入门]简单的a+b (C语言代码) 摘要:解题思路:利用scanf()函数的返回值,实现每接收两个数,就输出他们的和。注意事项:本题注意scanf函数的返回值就行了,有n个变量接收到了相应的值,那么scanf()函数就返回n。参考代码:#in…… 题解列表 2019年05月23日 1 点赞 0 评论 570 浏览 评分:0.0
[编程入门]第一个HelloWorld程序! (C语言代码) 摘要:解题思路:直接输出注意事项:注意别忘了换行符哦!参考代码:#include<stdio.h> int main(){ printf("**************************\nHel…… 题解列表 2019年05月23日 1 点赞 0 评论 765 浏览 评分:0.0
[编程入门]三个数最大值 (C语言代码) 摘要:解题思路:就是比大小,简单粗暴注意事项:无参考代码:#include<stdio.h> int main(){ int a,b,c,r; scanf("%d %d %d",&a,&b,&c);…… 题解列表 2019年05月23日 0 点赞 0 评论 883 浏览 评分:0.0
[递归]母牛的故事 (C语言代码) 摘要:解题思路:就是递归的运用,很简单的一个递归公式 f(a)=f(a-1)+f(a-3),a表示年份注意事项:注意第一年只有一头牛,第二年才有两头牛(感觉题目有些不严谨,我觉得第一年就应该有两头牛,算了,…… 题解列表 2019年05月23日 0 点赞 0 评论 1070 浏览 评分:0.0
蓝桥杯算法提高VIP-删除数组中的0元素 (C语言代码)新手题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int cs(int a[],int n);int main(){ int a[1000]; int n,s; scanf("%d",&…… 题解列表 2019年05月23日 0 点赞 0 评论 1012 浏览 评分:0.0
DNA (C语言代码) 摘要:解题思路:用的二维数组,这是m=3这是m=5注意事项:上面的大佬考虑的很多,作为萌新我还是看不懂的参考代码:#include<stdio.h>static void fun(int a,int b);…… 题解列表 2019年05月23日 0 点赞 0 评论 622 浏览 评分:0.0
数据结构-字符串连接 (C++代码)----momoc 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main () { string a ,b; for(…… 题解列表 2019年05月23日 1 点赞 0 评论 668 浏览 评分:0.0
蓝桥杯算法训练VIP-字符删除 (C语言代码) 摘要:解题思路:主要考察对数组的运用,再就是基础注意事项:注意格式不要写错参考代码:# include <stdio.h>int main(){char str[21],str2[21],ch;gets(s…… 题解列表 2019年05月23日 0 点赞 0 评论 652 浏览 评分:0.0
蓝桥杯算法训练VIP-完数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int n,i,temp,sum=0;scanf("%d",&n);temp=n;for(i=1;i<n;i++)…… 题解列表 2019年05月23日 0 点赞 0 评论 598 浏览 评分:0.0