题目描述 FJ's N (1 ≤ N ≤ 10,000) cows conveniently indexed 1..N are standing in a line. Each cow has a positive integer height (which is a bit of secret). You are told only the height H (1 ≤ H ≤ 1,000,00
FJ's N (1 ≤ N ≤ 10,000) cows conveniently indexed 1..N are standing in a line. Each cow has a positive integer height (which is a bit of secret). You are told only the height H (1 ≤ H ≤ 1,000,000) o
文章目录 题目描述思考AC代码: 题目描述 题目链接: https://ac.nowcoder.com/acm/contest/999/C 题意: n头奶牛,告诉你最高的那头是第I头和它的高度H,以及R组两头互相看见的牛 A i A_i Ai和 B i B_i Bi,其中两条牛能互相看见的条件是它们中间的牛都小于它们两个的高度;求n个牛的最大高度。 思考 要