题解列表
1924: 蓝桥杯算法提高VIP-01背包
摘要:解题思路:注意事项:dp[i][j]=max(dp[i-1][j],dp[i-1][j-w[i]]+v[i]); dp[i][j]表示有i个物品传入,背包能装j的……
3050: 最长上升子序列
摘要:解题思路:注意事项:dp[j]=max(dp[j],dp[i]+1);参考代码:#include<stdio.h>#include<stdlib.h>int max(int a……
[编程入门]自定义函数之字符类型统计
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]……
Py2860-字符串判等
摘要:str1=input().strip().lower().replace('','')str2=inpu……
刷题记录2025/11/26 2773:计算线段长度
摘要:解题思路:注意事项:注意绝对值,注意保留三位小数参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,X……
最长上升序列(动态规划)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ int max=(a>b) ? a : b;&n……