摘要:
Problem "pdf" Description You are given n rods of length 1, 2, . . . , n. You have to pick any 3 of them and build a triangle. How many distinct trian 阅读全文
摘要:
Sample Input 5 4 2 1 5 3 3 1 4 3 2 2 4 3 2 Sample Output 1 Hint 题解 这道题目显然把每一段查询的路径求出来(即求LCA),然后将LCA排序,最后算一遍就行了 include include include include include 阅读全文