蓝桥杯算法训练VIP-入学考试 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int max(int a,int b)//手写max保险 { if(a…… 题解列表 2018年02月18日 0 点赞 0 评论 1008 浏览 评分:7.3
蓝桥杯算法训练VIP-传纸条 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n,m,a[52][52],f[52][52][52][52]; …… 题解列表 2018年02月18日 0 点赞 0 评论 1556 浏览 评分:2.0
P1029 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int max_match(string …… 题解列表 2018年02月18日 2 点赞 0 评论 1008 浏览 评分:2.0
简单的事情 (C语言代码) 摘要:解题思路: 公式。注意事项:注意范围。参考代码:#include<stdio.h>long long count(int n){ int i; long long s=1; for(i=n;i>0;i…… 题解列表 2018年02月18日 0 点赞 0 评论 686 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.9 (C语言代码)(简洁版) 摘要:解题思路:根据ascll码选择字符类型。注意事项:参考代码:/*输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的个数*/#include<stdio.h>int zm=0,sz=0,kg=…… 题解列表 2018年02月18日 0 点赞 0 评论 1175 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码)(简洁版) 摘要:解题思路:注意事项:参考代码:/*写一函数,输入一个四位数字,要求输出这四个数字字符,但每两个数字间空格。如输入1990,应输出"1 9 9 0"。*/#include <stdio.h>#inclu…… 题解列表 2018年02月18日 0 点赞 0 评论 971 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写一函数,将一个字符串中的元音字母复制到另一个字符串,然后输出。*/#include <stdio.h>#include <string.h>int main(){ …… 题解列表 2018年02月18日 0 点赞 0 评论 913 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写一函数,使输入的一个字符串按反序存放,在主函数中输入输出反序后的字符串*/#include <stdio.h>#include <string.h> int mai…… 题解列表 2018年02月18日 0 点赞 0 评论 714 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*写一函数,将两个字符串连接*/#include <stdio.h> #include <string.h>int main(){ char a[100],b[…… 题解列表 2018年02月18日 0 点赞 0 评论 794 浏览 评分:0.0
连续自然数和 (C语言代码) 摘要:/* 思路:m 分解成连续 n 个自然数相加,那么这 n 个数的平均数 m/n 应该是这些数中心的位置,或者 中心附近。那么第一个数就是 m/n- n/2,这个值要大于 0 。 ==>> …… 题解列表 2018年02月18日 3 点赞 0 评论 1817 浏览 评分:7.3