题解列表
1002: [编程入门]三个数最大值c++代码
摘要:解题思路:先重大到小排序,再输出最大值。注意事项:要输最大值。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a[……
计算球的体积(Python)
摘要:解题思路:注意事项:参考代码:import math
pi = math.pi
while True:
try:
r = float(input())
……
最大上升子序列和-DP
摘要:#### DP问题
####注意事项
- 与最长上升子序列问题思路相同,仅仅改变维护的信息。
###### 代码
```
#include
#include
using ……
题解 2811: 救援
摘要:解题思路:注意事项:参考代码:import math # 调用数学模块
t = 0
n = int(input()) #屋顶数
for i in range(n):
a = ……
最长上升子序列问题3-友好城市
摘要:## 最长上升子序列问题3
### 注意事项
1.通过分析可以发现,符合标准的序列首先应该满足上下城市的编号都是递增的。
2.那么先对一边的坐标进行排序,再对另一边进行最长上升子序列问题的求……
球弹跳高度的计算C语言
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h; scanf("%d",&h); int i; double h1=h; double s=0; f……