How to write code to realize super glue
This article mainly explains "how to write code to achieve super glue". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought. Let's study and learn how to write code to achieve super glue.
The main thing is to see the rules, and then prefix and solve. Remember to look at the data range, do not open long long directly to see the ancestors.
# include#include#include#includetypedef long long LL;using namespace std;const int N = 1e5y10 [N]; / / the original array LL c [N]; / / playback and LL s [N]; / / play the result int main () {cin > > n; for (int item1 [I] > a [I], c [I] = a [I]; for (int iposit 1 [I]