蓝桥杯算法训练VIP-阿尔法乘积 (C语言代码) 摘要:#include "stdio.h"int fun(unsigned int n){ int t=1,s=1; if (n / 10 == 0) return n; else { do { …… 题解列表 2018年10月24日 0 点赞 0 评论 699 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:利用数列累加的原理,找出每年数量与前几年的关系,保留需要累加的前几项,最后便能得到结果注意事项:没有调用任何复杂的函数,只用了最基本的语法,适合初学者推敲参考代码:#include <std…… 题解列表 2018年10月23日 0 点赞 0 评论 408 浏览 评分:0.0
蓝桥杯算法训练VIP-阶乘 (C语言代码) 摘要:#include "stdafx.h"int main(){ int i,n,s=1,t; scanf("%d", &n); for (i = 1; i <= n; i++) { s *= i; …… 题解列表 2018年10月23日 0 点赞 0 评论 610 浏览 评分:0.0
蓝桥杯2014年第五届真题-拼接平方数 (C语言代码) 摘要:#include "stdafx.h"#include "math.h"int fun_len(int n){ int count=0; do { n /= 10; count++; } whil…… 题解列表 2018年10月23日 0 点赞 0 评论 838 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ printf("**************************\n"); printf("…… 题解列表 2018年10月23日 0 点赞 0 评论 822 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c1='C',c2='h',c3='i',c4=…… 题解列表 2018年10月23日 0 点赞 0 评论 503 浏览 评分:0.0
逆序数 (C语言代码) 摘要:#include "stdafx.h"#define max 100int main(){ int n,a[max],i,j,count=0; scanf("%d", &n); for (i = 0;…… 题解列表 2018年10月23日 0 点赞 0 评论 1353 浏览 评分:4.0
蓝桥杯算法提高VIP-求最大值 (C语言代码) 摘要:#include "stdafx.h"#define max 100void bubblesort(int a[],int b[], int n) //数组a从大到小,并且b同步变化{ int i,…… 题解列表 2018年10月23日 0 点赞 0 评论 1730 浏览 评分:7.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"int main(){ char s[5][100] = { 0 }; int i,max=0,len,flag; for …… 题解列表 2018年10月23日 0 点赞 0 评论 850 浏览 评分:0.0
蓝桥杯算法训练VIP-斜率计算 (C语言代码) 摘要:#include "stdafx.h"int main(){ float x1, y1, x2, y2; double k; printf("input x1,y1 x2,y2 \n"); scan…… 题解列表 2018年10月23日 0 点赞 0 评论 734 浏览 评分:0.0