HDU1257 考驗思維的LIS

Sample Input 8 389 207 155 300 299 170 158 65 Sample Output 2 沒看題解前,我的思路和這位博主的思路幾乎一樣,但越寫越複雜,總覺得不對勁,只好看一眼題解,發現居然是LIS! 不看題解的話,還真是想不出來,先寫下來慢慢悟吧 #include <cstdio> #include <cstring> #include <cstdlib> #i
相關文章
相關標籤/搜索