登山-线性动态规划的一种特殊情况 摘要:解题思路:注意事项:参考代码:"""线性动态规划 时间复杂度 N**2除了要考虑上升的情况还要考虑先上升和下降前面一种实现起来很简单对于后面一种 要考虑更多的东西-比如数据重复和数据来源"""num=…… 题解列表 2022年12月20日 0 点赞 0 评论 435 浏览 评分:9.9
2799:不要忘记初始化变量-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n; int a,b,c; a = 0…… 题解列表 2022年12月20日 0 点赞 0 评论 487 浏览 评分:9.6
2798:用数组找最大值-《C语言》 摘要:解题思路:注意事项:参考代码:#include <math.h> #include <stdio.h> #include <stdlib.h> #define N 1000 int main(…… 题解列表 2022年12月20日 0 点赞 0 评论 746 浏览 评分:9.9
2818:老套路-(除十模十)-C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h> void func(long long n); int main() { long long a; scanf("%…… 题解列表 2022年12月20日 0 点赞 1 评论 602 浏览 评分:9.9
1053: 二级C语言-平均值计算 摘要:解题思路:使用数组及for循环注意事项:参考代码:#include<stdio.h>{int a[10]; int sum=0,score=0; for(int i=0;i<10;i++)…… 题解列表 2022年12月20日 0 点赞 0 评论 255 浏览 评分:0.0
优质题解 后缀表达式的值 摘要:解题思路: 1.从左到右扫描后缀表达式的每一个字符。 2.如果读入的字符是数字,将其转化为整数,并将其压入栈中。 3.如果读入的字符是运算符,则从栈中取出两个运算数,进行计算,并将结果压入栈中。…… 题解列表 2022年12月20日 1 点赞 0 评论 756 浏览 评分:6.8
有错误请指出 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int N,M; scanf("%d %d",&N,&M); int a,i=1,c=0; w…… 题解列表 2022年12月20日 0 点赞 0 评论 495 浏览 评分:9.0
有错误请指出 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,n; scanf("%d %d",&a,&n); int i=0,cheng=1; …… 题解列表 2022年12月20日 0 点赞 0 评论 608 浏览 评分:9.5
[编程入门]利润计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ int a=100000; if(x<=a) { return 0.1*x; } else if(x<…… 题解列表 2022年12月20日 0 点赞 0 评论 327 浏览 评分:0.0
C语言训练-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,i; double s=1,t=0; scanf("%d",&m); for(i=2;i<=m;i+…… 题解列表 2022年12月20日 0 点赞 0 评论 258 浏览 评分:0.0