[编程入门]三个数找最大值 (c++) 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; int temp=…… 题解列表 2021年03月24日 0 点赞 0 评论 1491 浏览 评分:9.9
[编程入门]数字的处理与判断 (c++) 摘要:参考代码:#include<iostream>using namespace std;int main(){ int arr[5]; int n; //输入的数 int number = 0;//记录…… 题解列表 2021年03月24日 0 点赞 0 评论 1052 浏览 评分:9.9
[编程入门]利润计算 c++ 摘要:参考代码:#include<iostream>using namespace std;int fun( long int a){ double b; if (a <= 100000)b = a * …… 题解列表 2021年03月24日 0 点赞 0 评论 1181 浏览 评分:9.3
蓝桥杯算法提高VIP-文化之旅 (C++代码)DFS+STL 摘要:解题思路:注意事项:参考代码:// s 和t反过来就可以ac 不然会超时#include<iostream>#include<set>#include<vector>using namespace s…… 题解列表 2021年03月24日 0 点赞 0 评论 870 浏览 评分:9.9
优质题解 暴力破解C++语言 解题思路:在做这道题的时候我也是思考了很久,一直没有头绪,在查看了很多人的解法后,我觉得暴力求解最适合我,这里也将自己的理解分享给大家,我认为暴力求解是不走任何捷径的,从一开始依次去验证到末尾,直到得出答案(个人理解),在这个题中,它要求得是最大不能组合的数, 题解列表 2021年03月23日 0 点赞 3 评论 3901 浏览 评分:9.4
题解2213 (送分题) 摘要:解题思路: 直接输出yes注意事项:无参考代码:#include <iostream>using namespace std;int main(){ cout<<"yes"; return…… 题解列表 2021年03月23日 0 点赞 0 评论 618 浏览 评分:0.0
字符串对比 摘要:#include <iostream>#include<cstring>#include<cmath>using namespace std;int main(){ char str1[10],…… 题解列表 2021年03月23日 0 点赞 0 评论 604 浏览 评分:0.0
字符逆序cin.get(str,100); 摘要:#include#includeusing namespace std;int main(){ char str[100]; cin.get(str,100);//gets(str); …… 题解列表 2021年03月23日 0 点赞 0 评论 1015 浏览 评分:0.0
优质题解 ✔✔✔ 树的直径问题+DFS求解 [c++] 典型的**树的直径**问题:图中所有最短路径的最大值即为「直径」,可以用两次DFS或者树形DP的方法在O(n)时间求出树的直径。题解以两遍DFS为例**定理:**在一个连通无向无环图中,以任意结点出发所能到达的最远结点,一定是该图直径的端点之一。 题解列表 2021年03月23日 0 点赞 0 评论 1744 浏览 评分:8.3
字符串的输入输出处理 摘要:#include #include#includeusing namespace std; int main() { int n;char str[1000]; cin>>n…… 题解列表 2021年03月23日 0 点赞 0 评论 586 浏览 评分:0.0