摘要:
DP题自己实在想不出来,看大神代码才能勉强理解一下 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; const int A=1000001; long long n,m; long long f[10... 阅读全文
摘要:
#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define mp make_pair #define pb push_back #define debug puts("debug"... 阅读全文
摘要:
map打表存一下对应的密码 不会map感觉不好弄这题 阅读全文
摘要:
原串长度减去 原串和逆串的最长公共子序列的长度 阅读全文
摘要:
XiaoMing likes mathematics, and heis just learning how to convert numbers between different bases , but he keeps making errorssince he is only 6 years 阅读全文
摘要:
仔细看题想想就是个贪心题,两个sort就可以解决了 阅读全文
摘要:
题意:给你三个字符串,让你计算1 2 串和3 串是否匹配,就是3串可以分解为 1 2 串,字母顺序必须是按照1 2 串的字母前后顺序。 DP代码太深奥 看不太透,这个代码比较好理解一点: 阅读全文