CodeForces - 605A

每次能夠把一輛車放在開頭或者結尾ios 問最少多少次操做讓這個數列變成遞增數列spa 既然要保持最少操做,那就須要讓最長的上升序列的數保持不變,讓其餘數進行改變code #include <iostream> #include <cstdio> using namespace std; const int maxn = 100000 + 10; int a[maxn], b[maxn]; int
相關文章
相關標籤/搜索