动态规划——求最长不下降子序列(python详解) 摘要:解题思路:吐槽官方,写了一大堆,然后说我的题目太短,结果写的全没了!!! dp【i】的含义为,以b【i】结尾的最长不下降子序列是多少然后我们要确定上一状态,首先如果我们以b【i】结尾,那么我们得上一个…… 题解列表 2024年03月23日 0 点赞 0 评论 961 浏览 评分:9.9
没事不要乱发明游戏 摘要: #include int main() { int n; while(scanf("%d",&n)!=EOF) { …… 题解列表 2024年03月23日 0 点赞 0 评论 580 浏览 评分:0.0
数列求和~~~~ 摘要: #include int main() { int a[35]={3,4,5,0}; int n,i; scanf("…… 题解列表 2024年03月23日 0 点赞 0 评论 490 浏览 评分:0.0
题解 2903: 不高兴的津津 摘要:解题思路:注意事项:参考代码:hour_max = day = 0 for i in range(1, 7 + 1): hour1, hour2 = map(int, input().sp…… 题解列表 2024年03月23日 0 点赞 0 评论 555 浏览 评分:0.0
题解 1099: 校门外的树 摘要:解题思路:注意事项:参考代码:L, M = map(int, input().split()) trees = [1 for x in range(L+1)] for x in range(M):…… 题解列表 2024年03月23日 0 点赞 0 评论 462 浏览 评分:0.0
[编程入门]链表之报数问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n = 0; scanf_s("%d", &n); int arr[1000] = { 0 }; fo…… 题解列表 2024年03月23日 0 点赞 0 评论 557 浏览 评分:0.0
2855: 简单密码 摘要:参考代码:s = input() s1 = { "A": "V", "B": "W", "C": "X", &q 题解列表 2024年03月23日 0 点赞 0 评论 472 浏览 评分:0.0
2854: 密码翻译 摘要:参考代码:s = list(input()) for i in range(len(s)): if s[i] == 'z': s[i] = 'a&…… 题解列表 2024年03月23日 0 点赞 0 评论 622 浏览 评分:0.0
找出规律 for循环输出即可 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;using ll = long long;const int N = 1e5+9;i…… 题解列表 2024年03月23日 0 点赞 0 评论 521 浏览 评分:0.0
2853: 字符替换 参考代码:s,a,b=map(str,input().split())print(s.replace(a,b)) 题解列表 2024年03月23日 0 点赞 0 评论 571 浏览 评分:0.0