题解列表
优质题解
线性dp(打家劫舍系列)
摘要:解题思路:代码前的思考:由于每一项的值都大于0,所以我们要尽可能的多选,将问题转换成:给定一个序列,要求不能选取相邻的元素,问能获得的最大价值是多少?1、分别记录每个点取或不取所形成的价值2、取的话就……
2916: 谁考了第k名
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long xh[10001],temp1;int m[10001];float sc……
java做法解答这题
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main108 { public static void main(String[] a……
2857: 加密的病历单
摘要:```python
s = input()
news = str()
for c in s:
if c.isupper(): news += c.lower()
else: ……