题解 P7870 「Wdoi-4」兔已着陆

不用真的模拟一个个的蛋糕。直接将一个区间压入栈中即可。取出来时,注意将断的区间一分为二重新塞入。 #include <bits/stdc++.h> using namespace std; #define N 1000010 #define ll long long template <class
posted @ 2022-09-23 11:47  雪之下,树之旁  阅读(56)  评论(0编辑  收藏  举报