Description 有N根木棍等待处理.机器在处理第一根木棍时需要准备1分钟,此后遇到长宽都不大于前一根木棍的木棍就不需要时间准备,反之则需要1分钟重新准备.比如木棍按照(3,3).(1,3).(1,4).(2,3)的顺序进入,共需要准备3分钟 Input 第一行是T,表示测试数据个数.测试数据的第一行是N(1 <= N <= 5000)此后一行是 l1 , w1 , l2 , w2 ,..., ln , wn......长宽都小于10000 Output 每个一行,表示最短准备时间 Sa…