C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c1='C',c2='h',c3='i',c4=…… 题解列表 2018年10月23日 0 点赞 0 评论 555 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ printf("**************************\n"); printf("…… 题解列表 2018年10月23日 0 点赞 0 评论 1036 浏览 评分: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 评论 897 浏览 评分: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 评论 661 浏览 评分:0.0
母牛的故事 (C语言代码) 摘要:解题思路:利用数列累加的原理,找出每年数量与前几年的关系,保留需要累加的前几项,最后便能得到结果注意事项:没有调用任何复杂的函数,只用了最基本的语法,适合初学者推敲参考代码:#include <std…… 题解列表 2018年10月23日 0 点赞 0 评论 466 浏览 评分:0.0
蓝桥杯算法提高VIP-色盲的民主 (C++代码) 摘要:解题思路:1.每种颜色都对应有其票数,所以可定义一个颜色结构体:包含颜色单词和获得的投票数。在程序中输入颜色,然后与结构体数组(颜色表)中的颜色比较是否有相应的颜色,如果有,则投票数加1,如果没有,则…… 题解列表 2018年10月24日 1 点赞 0 评论 1019 浏览 评分:0.0
蓝桥杯算法训练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 评论 784 浏览 评分:0.0
蓝桥杯算法训练VIP-s01串 (C++代码) 摘要:解题思路:使用C++的string类很简单就可以实现了。注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2018年10月24日 0 点赞 0 评论 543 浏览 评分:0.0
蓝桥杯算法训练VIP-s01串 (C语言代码) 摘要:#include "stdafx.h"#include "string.h"#define max 10000void fun(int n){ char s = '0', a[max]…… 题解列表 2018年10月24日 0 点赞 0 评论 901 浏览 评分:0.0
蓝桥杯算法训练VIP-集合运算 (C语言代码) 摘要:#include "stdafx.h"#define max 1000void BubbleSort(int n, int a[]){ int i,j,t; for(i=0;i<n-1;i++) f…… 题解列表 2018年10月24日 0 点赞 0 评论 719 浏览 评分:0.0