稍作思考,一次multi-drop操作可以将序列中任意一个数字转移到任意位置,自然可以想到要求需要转移的数字个数,即用原序列的长度减去最长上升子序列的长度,此处的代码复杂度为可以用二分优化为由于我巨弱就不打了 #include
#include
using namespace std;
int a
展开全文
题目描述 Inaka composes music. Today's arrangement includes a chord of notes that are pairwise distinct, represented by a permutation of integers from
展开全文