TSP
RemのHero
github网址:https://github.com/RemHero
Even if hurt, but also to the full, gentle run.
展开
-
字符串折叠
字符串折叠 题解见luogu dp问题要考虑所有完整的情况 1、将问题分治 2、分治后的合并处理(可能会与分无关,就是当做整体处理) 3、状态转换方程 想不通时,从最简单的样例出发 一定要想清楚,什么样的分治方法才是正确的(如何 合理的分解问题为子问题) #include<cstdio> #include<iostream> #include<string> #include<cmath> #include<algorithm> #include&原创 2021-09-10 16:49:10 · 152 阅读 · 0 评论 -
火星A+B
火星A+B 不要转换为10进制再加,直接按位加,然后进位即可 #include <cmath> #include <iostream> #include <queue> #include <sstream> #define LL long long using namespace std; const int number[]={2 ,3, 5 , 7 , 11 , 13 , 17 , 19 ,原创 2021-09-10 13:22:06 · 93 阅读 · 0 评论