2779: 输出绝对值 摘要:```cpp #include #include #include using namespace std; int main() { double n; cin>>n…… 题解列表 2022年12月17日 0 点赞 0 评论 615 浏览 评分:9.9
2780: 奇偶数判断 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; cout…… 题解列表 2022年12月17日 0 点赞 0 评论 487 浏览 评分:9.9
求和(要注意时间超时) 摘要: 首先我们要注意不要被这道题简单的话语蒙蔽双眼,因为这里存在一个问题那就是时间超限,这里我放一个简单的代码(常规思路,但是时间超限) #include //(这个代码看起来很简单对吧,…… 题解列表 2022年12月17日 0 点赞 0 评论 1093 浏览 评分:9.9
编写题解 1118: Tom数 (C语言) 摘要:解题思路:就知道你不喜欢看解释注意事项:参考代码://每行一个输出,对应该数的各位数之和. #include <stdio.h> #include <string.h> int main (vo…… 题解列表 2022年12月17日 0 点赞 0 评论 619 浏览 评分:9.9
优质题解 背包问题(动态规划,超级详细,保证教会) 摘要: 动态规划问题是算法的一大难题,但是他的思想其实就是保存所有情况,在所有情况中找到解,我们可以创建一个”备忘录“,把每一个情况写到这个备忘录中,直到所有的情况都写到我们的备忘录的时候,找到我们满意的…… 题解列表 2022年12月17日 0 点赞 0 评论 608 浏览 评分:9.9
数字插入处理(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a[10],n,i; for(i=0;i<9;i++) { scanf("%d",&a[i]); } s…… 题解列表 2022年12月18日 0 点赞 0 评论 244 浏览 评分:9.9
有错误请指出 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){int a;scanf("%d",&a);if(a/10==0){ printf("0");}else{ pri…… 题解列表 2022年12月18日 0 点赞 2 评论 802 浏览 评分:9.9
二级C语言-分段函数 摘要:解题思路:注意事项:注意要用double参考代码:#include<stdio.h>#include<math.h>double fun(double x){ if(x<0) { return fa…… 题解列表 2022年12月18日 0 点赞 1 评论 366 浏览 评分:9.9
优质题解 完全背包问题(动态规划,超级详细,保证教会,同时与背包问题做对比) 摘要: 前言:我们这里的背包问题与完全背包问题的最大不同点是可否重复投放相同的物品,而我们这里完全背包问题解除了这个限制,所以我们要对背包问题进行进一步的改进,从而完成问题,背包问题我也写了题解,感兴趣的…… 题解列表 2022年12月18日 0 点赞 1 评论 530 浏览 评分:9.9
最基本的思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int arr[n],i,sum=0; for(i…… 题解列表 2022年12月18日 0 点赞 1 评论 440 浏览 评分:9.9