1. 程式人生 > >hdu 5773 最長遞增子序列的應用---隨意改變為0的數

hdu 5773 最長遞增子序列的應用---隨意改變為0的數

?? gets an sequence S with n intergers(0 < n <= 100000,0<= S[i] <= 1000000).?? has a magic so that he can change 0 to any interger(He does not need to change all 0 to the same interger).?? wants you to help him to find out the length of the longest increasing (strictly) subsequence he can get.