题解列表

筛选

2822: 求分数序列和

摘要:```cpp #include #include using namespace std; int main() { int n; double a=1.0,b=2.0,……

编写题解 1130: C语言训练-数字母(利用cctype)

摘要:解题思路:我看了一下题解,好像用ctype系列的题解暂时没有。这里就暂且引入一下ctype,操作就稍稍简单一点。ctype.h是C标准函数库中的头文件,定义了一批C语言字符分类函数(C charact……

2134混合背包 简单动态规划(简单易理解版)

摘要:解题思路:就是01背包,多重背包,和无限背包合起来,加个判断条件就好了注意事项:  1.这里使用普通的dp数组,方便初学者理解. 加上这道题普通的dp数组也可以过,就不再优化了            ……

2917: 奇数单增序列

摘要:```cpp #include using namespace std; int main() { int n,a[501],k; cin>>n; for(int……

2910: 找最大数序列

摘要:```cpp #include using namespace std; int main() { int n,i,x,a[31],mark=0,max=-1; bool ……

2919: 奖学金

摘要:```cpp #include #include using namespace std; struct student { int id,Chinese,score; }stu……

2792: 三角形判断

摘要:```cpp #include using namespace std; int main() { int a,b,c; cin>>a>>b>>c; if(a+b……