最小移动总距离 - 力扣 dp,N - Nunchucks Shop 组合数求不回文的排列,D - Yet Another Problem map记录前缀和的位置
N-NunchucksShop组合数求不回文的排列可以发现对于每个iusingnamespacestd;#defineendl'\n'#defineintlonglong//constintmod=1e9+7;constintinf=1e18;constintN=1e7+100;inta[55][55];intc[55][55];signedmain(){//ios::sync_with_stdi