数据结构用栈实现进制转换 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h>#define MAXSIZE 100typedef struct{ int data[MAXS…… 题解列表 2024年11月07日 0 点赞 0 评论 137 浏览 评分:0.0
循环链表解法(c语言代码) 摘要:```c #include #include // 定义链表节点结构体 typedef struct node { int data; // 节点存…… 题解列表 2024年11月07日 1 点赞 0 评论 253 浏览 评分:0.0
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ int k, n; dou…… 题解列表 2024年11月07日 0 点赞 0 评论 153 浏览 评分:0.0
2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int sum = 0, j, a, b, c, i; char d; scanf("%d…… 题解列表 2024年11月07日 0 点赞 0 评论 115 浏览 评分:0.0
信息学奥赛一本通T1173-阶乘和--运用高精度乘法与加法:计算n的阶乘和 摘要:解题思路:因为n<=50;当n>20最大存储整数类型long long也存储不下,导致造成数据溢出。所以运用高精度乘法与加法计算n的阶乘和参考代码:#include <iostream>#includ…… 题解列表 2024年11月07日 0 点赞 0 评论 377 浏览 评分:9.9
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,p=0; scanf("%d",&n); p=pow(2,n)…… 题解列表 2024年11月07日 0 点赞 0 评论 164 浏览 评分:9.9
T1267-01背包问题 摘要:解题思路:滚动数组—— 一维dp数组遍历:for( ) 物品 for( 逆序) 背包递推公式: dp[ j ] = max( dp[ j ] , dp[ j -w[ i ] ] + …… 题解列表 2024年11月07日 0 点赞 0 评论 151 浏览 评分:0.0
每一行都有解释的c++代码(组合的输出) 摘要:参考代码:#include<bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话在前面加上std::int m, n;//定义两个变量用于承载…… 题解列表 2024年11月07日 1 点赞 0 评论 411 浏览 评分:7.3
题解,标记 摘要:```c #include int main() { int n; scanf("%d", &n); int arr[n]; for (int i =…… 题解列表 2024年11月07日 0 点赞 0 评论 155 浏览 评分:0.0
循环+一维数组解决水仙花 摘要:解题思路:分割出每一位数,求立方和,相加跟原数比较注意事项:***0,1不算,要从2开始遍历****注意刷新和(res),数组序号i参考代码:#include <stdio.h> int main()…… 题解列表 2024年11月07日 0 点赞 0 评论 436 浏览 评分:9.9