摘要:
题意:一系列m个1~n区间,每个区间固定对某个子区间进行排序,顺序选择若干区间,使最终覆盖所有区间。分析: computes the length of the shortest subsequence of the initial sequence of sorters sti... 阅读全文
摘要:
题意:求n*n矩阵的幂和分析:逐个加起来时间复杂度太高,通过在矩阵中套个矩阵和,再利用矩阵快速幂,最后时间复杂度为O(n3logn)代码:#include#include#includeusing namespace std;typedef long long ll;const i... 阅读全文