摘要: 链接:https://ac.nowcoder.com/acm/contest/102/C来源:牛客网 题目描述 We define a value of an interval is the second largest number of it's elements, and of course a 阅读全文
posted @ 2020-01-17 22:29 GRedComeT 阅读(86) 评论(0) 推荐(0) 编辑
摘要: Let us consider a special type of a binary search tree, called a cartesian tree. Recall that a binary search tree is a rooted ordered binary tree, suc 阅读全文
posted @ 2020-01-17 14:15 GRedComeT 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Xuanxuan has n sticks of different length. One day, she puts all her sticks in a line, represented by S1, S2, S3, ...Sn. After measuring the length of 阅读全文
posted @ 2020-01-17 11:40 GRedComeT 阅读(119) 评论(0) 推荐(0) 编辑