B. Find the Spruce(暴力)

題目ios 思路:先預處理一下每一個元素以後會有多少個連續的’*’,時間O(n^3),而後對於每個元素暴力模擬一下,時間O (n^3),細節見代碼。web Code:svg #include<iostream> #include<string> #include<map> #include<algorithm> #include<memory.h> #include<cmath> #include
相關文章
相關標籤/搜索