超时的DFS,上面那位大佬厉害呀 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include…… 题解列表 2018年03月30日 3 点赞 0 评论 1853 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:刚开始想用指针和数组方式编写程序,程序在下面,在这个程序中数组长度我给定了100,在运行程序时,输入字符完成后,按回车总是结束不了字符的输入。大家有什么解决的方法注意事项:参考代码:#inc…… 题解列表 2018年03月30日 0 点赞 0 评论 868 浏览 评分:0.0
蓝桥杯算法提高VIP-最长单词 (C++代码) 摘要:#include<iostream> #include<string> #include<sstream> using namespace std; string s1,s2,s3; int…… 题解列表 2018年03月30日 1 点赞 0 评论 890 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:参考代码如下:#include <stdio.h> #include <math.h> //计算n的阶乘 double fact(int n) { double an = 1;…… 题解列表 2018年03月30日 0 点赞 0 评论 1336 浏览 评分:0.0
蓝桥杯历届试题-带分数 (C++代码)(超超小朋友极简代码) 摘要:解题思路:注意事项:数组a[] 从0开始存;参考代码:#include<iostream>#include<algorithm>using namespace std;int n,result;in…… 题解列表 2018年03月30日 5 点赞 2 评论 1200 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(1) (C语言代码)找出绝对值最小数与最后一位交换 摘要:第一遍错误是没有看清题目说的是绝对值。。参考代码如下:#include <stdio.h> #include <math.h> int main() { int a[10]; …… 题解列表 2018年03月30日 0 点赞 0 评论 681 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:参考代码如下:#include <stdio.h> int main() { double sum = 0; double an = 1; int i; …… 题解列表 2018年03月30日 0 点赞 0 评论 1212 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码)做到这里已经是第三次求公约公倍了 还是记一下吧 摘要:参考代码如下:#include <stdio.h> int main() { int m, n; scanf("%d %d", &m, &n); int a …… 题解列表 2018年03月30日 0 点赞 0 评论 1023 浏览 评分:7.3
蓝桥杯算法提高VIP-种树 (C++代码) 摘要:解题思路:搜索,不是动态规划。注意事项:参考代码:#include<iostream> #include<string.h> #include<algorithm> using namespac…… 题解列表 2018年03月30日 1 点赞 0 评论 1789 浏览 评分:6.0
蓝桥杯算法训练VIP-接水问题 (C++代码) 摘要:参考代码:#include<stdio.h>#include<iostream>#include<string.h>#include<algorithm>using namespace std;int…… 题解列表 2018年03月30日 0 点赞 0 评论 1225 浏览 评分:9.9