题解列表
用动态规划求解爬楼梯
摘要:解题思路:#include<iostream>using namespace std;int dp[30];//dp数组表示到i阶梯的总的方案数//则第i个可能有i-1上来,或者i-3上来 int m……
结构体之成绩统计2(c语言)
摘要:解题思路:用一个整型数组储存每个学生的成绩总分,比较出最高的,再用k记录下标,然后输出注意事项:参考代码:#include<stdio.h>typedef struct DATA{ char N……
带参数宏定义,交换数值
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define Swap(x,y,t) (t=x,x=y,y=t) int main(){ int a,b,c; scanf……
宏定义练习之三角形面积
摘要:解题思路:已知三边可用海伦公式注意事项:参考代码:#include<stdio.h>#include<math.h>#define S(x,y,z) ((x)+(y)+(z))/2.0#define ……
1954: 话费计算
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n……
1953: 三位数分解
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n……