最长上升子序列(python) 摘要:解题思路:时间复杂度O(n^2),详解可以去看我的另一篇:最长不下降子序列注意事项:参考代码:n=int(input()) b=list(map(int,input().split())) dp=…… 题解列表 2024年03月23日 0 点赞 0 评论 403 浏览 评分:9.9
动态规划——求最长不下降子序列(python详解) 摘要:解题思路:吐槽官方,写了一大堆,然后说我的题目太短,结果写的全没了!!! dp【i】的含义为,以b【i】结尾的最长不下降子序列是多少然后我们要确定上一状态,首先如果我们以b【i】结尾,那么我们得上一个…… 题解列表 2024年03月23日 0 点赞 0 评论 650 浏览 评分:9.9
没事不要乱发明游戏 摘要: #include int main() { int n; while(scanf("%d",&n)!=EOF) { …… 题解列表 2024年03月23日 0 点赞 0 评论 394 浏览 评分:0.0
数列求和~~~~ 摘要: #include int main() { int a[35]={3,4,5,0}; int n,i; scanf("…… 题解列表 2024年03月23日 0 点赞 0 评论 314 浏览 评分: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 评论 352 浏览 评分: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 评论 285 浏览 评分:0.0
[编程入门]链表之报数问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n = 0; scanf_s("%d", &n); int arr[1000] = { 0 }; fo…… 题解列表 2024年03月23日 0 点赞 0 评论 344 浏览 评分:0.0
2855: 简单密码 摘要:参考代码:s = input() s1 = { "A": "V", "B": "W", "C": "X", &q 题解列表 2024年03月23日 0 点赞 0 评论 271 浏览 评分:0.0
2854: 密码翻译 摘要:参考代码:s = list(input()) for i in range(len(s)): if s[i] == 'z': s[i] = 'a&…… 题解列表 2024年03月23日 0 点赞 0 评论 446 浏览 评分: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 评论 356 浏览 评分:0.0