数据结构-一元多项式加法-题解(C++代码) 摘要:```cpp #include #include #include #include #include #include #include #include #define n …… 题解列表 2020年03月13日 0 点赞 0 评论 1306 浏览 评分:9.9
数据结构-无向图的连通分量和生成树-题解(C++代码) 摘要: ```cpp #include using namespace std; const int n = 52; typedef int adjMatrix[n][n]; struct G…… 题解列表 2020年03月13日 0 点赞 0 评论 1114 浏览 评分:9.9
数据结构-静态表的顺序查找-题解(C++代码) 摘要:向前逐个查找即可。 不过如果找不到记得输出-1 ```cpp #include using namespace std; int main(){ int k,n; cin…… 题解列表 2020年03月13日 0 点赞 0 评论 1213 浏览 评分:8.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要: 代码: #include int main() { int a,b,c,d; scanf("%d",&a); int sum=2;…… 题解列表 2020年03月13日 0 点赞 0 评论 901 浏览 评分:0.0
信息学奥赛一本通T1005-地球人口承载力估计-题解(C语言代码)【iorixq】 摘要:代码没什么难度,我们主要来看题解: 1、首先,我们了解到地球资源是恒定增长的,也即随着年度而增加,假设增长率为p每年; 2、已知110亿人口可生活90年,那么消耗的总资源为110X90=9900 …… 题解列表 2020年03月13日 1 点赞 0 评论 1003 浏览 评分:0.0
数据结构-采用十字链表存储的稀疏矩阵-题解(C++代码) 摘要:```cpp #include using namespace std; struct A { int row; int col; int data; …… 题解列表 2020年03月13日 0 点赞 1 评论 862 浏览 评分:4.7
[编程入门]阶乘求和-题解(C语言代码) 摘要: 代码的原理可以看数学题,这个很无语但也没办法。这里有一些细节就是数量限制,不能超过20,然后是每个数值的结果相加。但是最重要的是类型,‘不是整型而是长整型’这个一定要记住。出题人把坑挖的挺深。这个…… 题解列表 2020年03月13日 0 点赞 0 评论 999 浏览 评分:0.0
C语言训练-最大数问题-题解(C++代码) 摘要:```cpp #include using namespace std; typedef struct Node{ int data; struct Node *nex…… 题解列表 2020年03月13日 0 点赞 1 评论 851 浏览 评分:9.9
C语言训练-字符串正反连接-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { string s1,s2; cin>>s1;…… 题解列表 2020年03月13日 0 点赞 0 评论 754 浏览 评分:0.0
蓝桥杯算法训练VIP-一元三次方程求解-题解(Python代码) 摘要:### python 二分查找 ```python a,b,c,d = map(float,input().split()) def f(x): return a*x**3+b*x**…… 题解列表 2020年03月13日 0 点赞 1 评论 1556 浏览 评分:9.9