(算法練習)——201312-3最大的矩形(CCF模擬)

emmm這一題1000*1000的時間複雜度還可承受,暴力大法~ 不過這題更好的解法應該是動態規劃?有時間再重寫把~ 要注意的是兩處max用好很關鍵web AC代碼:svg #include <stdio.h> #include <algorithm> #include <math.h> using namespace std; int main(){ int n; int num[1001
相關文章
相關標籤/搜索