Enter n in the first line (1<= n <= 500000). Next n lines per line, a number bi (1 <= bi <= 100000) represents the size of the i-th box
请先登录再刷题,不会做的题目右上可以查看题解和答案~
Enter n in the first line (1<= n <= 500000). Next n lines per line, a number bi (1 <= bi <= 100000) represents the size of the i-th box
Output an integer indicating the minimum number of boxes that can be seen
5 1 5 4 9 3
3