2019年牛客多校第二場-H-Second Large Rectangle

直接看代碼吧,實在看不懂帶組數據進去套,好比說某一行爲2 3 4 1 2 3,而後就理解了c++ 單調棧+預處理列,不要開long long,以前被本身演了,一直WA,發現是讀入問題spa #include<bits/stdc++.h> #define N 1010 #define LL long long using namespace std; LL n,m; LL ans1=0,ans=0
相關文章
相關標籤/搜索