题解 | #Redraiment的走法#
Redraiment的走法
http://www.nowcoder.com/practice/24e6243b9f0446b081b1d6d32f2aa3aa
readline()
const arr=readline().split(' ').map(item=>parseInt(item))
const res=[]
arr.forEach((item,idx)=>{
let maxStep=0
for(let i=0;i<idx;i++){
if(arr[i]<item && res[i]>maxStep){ maxStep=res[i]}
}
res.push(maxStep+1)
})
print(Math.max(...res))