摘要:
二分图排列 不想写了 code #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; inline int read(){ int x = 0; char 阅读全文
摘要:
又是模拟退役的一天 A. 排序 死因 : 输出没有让前面小于后面 通过找规律发现交换两个数值相邻的一定可以 原因是这样保证每次操作只减少一个逆序对 code #include<bits/stdc++.h> using namespace std; typedef long long ll; type 阅读全文
摘要:
A. 回文 经典 $dp$ ,两边同时走,三维状态表示走了几步,左上出发走到哪行,右下出发走到哪行 code #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 505; const 阅读全文