题解 1015: [编程入门]求和训练 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a = 0; int b = 0; int c = 0; cin >> a >> …… 题解列表 2021年05月15日 0 点赞 0 评论 503 浏览 评分:0.0
直接把输出结果就行。 摘要:解题思路:把参考结果输出注意事项:无参考代码:#include"iostream"using namespace std;int main(){ cout << "1/40,3/40,7/40,9/4…… 题解列表 2021年05月15日 0 点赞 0 评论 406 浏览 评分:0.0
杨辉三角(c++)(新手) 摘要:解题思路:首先获取 1-30 的所有的数据在输出.注意事项:参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespac…… 题解列表 2021年05月15日 0 点赞 0 评论 879 浏览 评分:9.9
三个数最大值(C++) 摘要:解题思路:题目需要对三个数进行比较,既然已经确定了比较的变量的个数,就可以直接定义三个整型变量,然后用cin读入三个数据,进行比较找出最大的那个变量,最后输出最大的这个变量的值就可以了注意事项:不像之…… 题解列表 2021年05月14日 0 点赞 0 评论 315 浏览 评分:0.0
题解 1707: 数据结构-有向无环图的拓扑排序 摘要:#include<iostream> #include<stack> using namespace std; int n,topo[100]={0},indegree[100]={0},a[1…… 题解列表 2021年05月14日 0 点赞 0 评论 641 浏览 评分:9.9
运用map解题 摘要:解题思路:注意事项:最后一个单词要考虑到参考代码:#include <bits/stdc++.h>using namespace std;map<string,int> mp;int main(){ …… 题解列表 2021年05月14日 0 点赞 0 评论 549 浏览 评分:9.9
[STL训练]{A} + {B}(用STL中的set) 摘要:#用STL中的set求解 ```cpp #include using namespace std; int main() { sets; int tmp,s1; while(ci…… 题解列表 2021年05月13日 0 点赞 0 评论 508 浏览 评分:0.0
C++递归解题《数组的距离》 摘要:###** 注意:没有很好的处理递归,所以耗时可能会有所延长。 #### 基本思路就是:对于一个递增数组,如果前一个数大于b,则它后面的数一定大于b,所以后面的数不用考虑,这样会节省很多时间。 `…… 题解列表 2021年05月12日 0 点赞 0 评论 909 浏览 评分:9.9
c++深度搜索解题 摘要:#### ### ## # 本题的原思路来自用户名为‘gyh0416’的用户(首先在此感谢这位用户),我在看到这位作者的题解后觉得非常好,便写了这个翻版。大家可以在本题题解中找到这位作者用C#写的代码…… 题解列表 2021年05月12日 0 点赞 0 评论 452 浏览 评分:0.0
Jam的计数法-------c 摘要:#include <iostream>#include <stdio.h>#include <math.h>#include <algorithm>#include <string.h> using …… 题解列表 2021年05月11日 0 点赞 0 评论 561 浏览 评分:0.0