1279C. Stack of Presents

Stack of Presents 維護最深深度便可 好比先拿一個第5層的,這時最深深度就是5,接下來若是拿第4層的就能夠認爲它剛剛已經被移到了最上面,若是要拿第7層的,就須要把上面的移出,而後更新深度c++ Code:git #include <bits/stdc++.h> using namespace std; #define ll long long #define pii pair<in
相關文章
相關標籤/搜索