题解列表

筛选

最长公共子序列

摘要:解题思路:从繁至简注意事项:c参考代码:#include <stdio.h>#include <string.h>int max(int a, int b) {    if (a >= b) retu……

1646: 蓝桥杯算法训练VIP-比较字符串

摘要:解题思路:库里有strcmp函数,返回的就是第一个不一样的位置成功返回0注意事项:参考代码:    #include<iostream>    #include<string>    #include……

机房,LCA+dp

摘要:解题思路:先求lca,在建树的过程中dp成型,最后算,我用的重链剖分求LCA注意事项:参考代码:#include<bits/stdc++.h>#define int long long#define ……