C语言程序设计教程(第三版)课后习题8.9 (C语言代码)(简洁版) 摘要:解题思路:根据ascll码选择字符类型。注意事项:参考代码:/*输入一行字符,分别统计出其中英文字母、数字、空格和其他字符的个数*/#include<stdio.h>int zm=0,sz=0,kg=…… 题解列表 2018年02月18日 0 点赞 0 评论 1137 浏览 评分:0.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 评论 644 浏览 评分:0.0
P1029 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <string> using namespace std; int max_match(string …… 题解列表 2018年02月18日 2 点赞 0 评论 937 浏览 评分:2.0
蓝桥杯算法训练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 评论 1447 浏览 评分:2.0
蓝桥杯算法训练VIP-入学考试 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int max(int a,int b)//手写max保险 { if(a…… 题解列表 2018年02月18日 0 点赞 0 评论 936 浏览 评分:7.3
蓝桥杯算法训练VIP-拦截导弹 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<cstdio> #include<cstring> int a[100005],d[100005],n; int lis1() { i…… 题解列表 2018年02月18日 4 点赞 0 评论 1182 浏览 评分:0.0
蓝桥杯算法训练VIP-接水问题 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<cstdio> using namespace std; int n,m,w[10001],s[101],maxx;//定义 int main()…… 题解列表 2018年02月18日 7 点赞 5 评论 618 浏览 评分:9.5
陈教主的三角形 (C语言代码) 摘要:参考代码:#include <iostream> using namespace std; int main() { int a,b,c; while(cin>>a>>b>>…… 题解列表 2018年02月18日 0 点赞 0 评论 914 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:不知道为什么现实答案错误。。。注意事项:参考代码:#include<stdio.h>int main(){int Sn=0,n,i,sum=1; scanf("%d",&n);for(i=1…… 题解列表 2018年02月18日 1 点赞 0 评论 639 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:用了两个for循环第一个for循环求和:先求的是n!然后是(n-1)!然后是(n-2)! ……最后再加起来第二个for循环求n!注意事项:由于数值较大,建议用long long定义阶乘的结果…… 题解列表 2018年02月18日 0 点赞 0 评论 656 浏览 评分:0.0