最长上升子序列问题3-友好城市 摘要:## 最长上升子序列问题3 ### 注意事项 1.通过分析可以发现,符合标准的序列首先应该满足上下城市的编号都是递增的。 2.那么先对一边的坐标进行排序,再对另一边进行最长上升子序列问题的求…… 题解列表 2023年02月09日 1 点赞 0 评论 454 浏览 评分:9.9
球弹跳高度的计算C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h; scanf("%d",&h); int i; double h1=h; double s=0; f…… 题解列表 2023年02月09日 0 点赞 1 评论 745 浏览 评分:5.3
最长上升子序列问题3 摘要:## 最长上升子序列问题 #### 注意事项 1.与登山问题相同[https://www.dotcpp.com/oj/problem3051.html](https://www.dotcpp.…… 题解列表 2023年02月09日 0 点赞 0 评论 421 浏览 评分:0.0
最长上升子序列问题2 摘要:# 最长上升子序列问题 ## 注意事项 1.从题目中可以看出,一开始上升后面下降,即先求上升子序列再求下降子序列。 2.如果用三重循环可能超时,可以先预处理出左右循环,这样就是两重循环。 …… 题解列表 2023年02月09日 0 点赞 0 评论 481 浏览 评分:9.9
最长上升子序列问题 摘要:## 最长上升子序列问题 #### 注意事项 1.需要做两遍(从左开始,从右开始)。 2.数据范围较小,不用优化 ****** ##### 代码 ``` #include #in…… 题解列表 2023年02月09日 0 点赞 0 评论 483 浏览 评分:0.0
2127: 信息学奥赛一本通T1258- 数字金字塔 摘要:解题思路:动态规划逆推法。注意事项:注意是从n-1行开始推参考代码:#include<bits/stdc++.h> using namespace std; int n,a[1005][1005]…… 题解列表 2023年02月09日 0 点赞 0 评论 473 浏览 评分:9.9
正常血压(简单明晰) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct record{ int a; int b;}press[100];//血压int main(){ int n; …… 题解列表 2023年02月09日 0 点赞 0 评论 616 浏览 评分:6.4
第一次打卡 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; while(n) { i=i*10+n%10; n/=10; } return i…… 题解列表 2023年02月09日 0 点赞 0 评论 275 浏览 评分:0.0
又是我,这个更好理解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int a[n]; double price=0.1; dou…… 题解列表 2023年02月09日 0 点赞 0 评论 434 浏览 评分:0.0
短信计费C语言解答 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; int i; for(i=0;i<n;i++)…… 题解列表 2023年02月09日 0 点赞 0 评论 793 浏览 评分:9.9