Aggressive cows--二分法思想
题目链接:2456 -- Aggressive cows
题目描述:
Farmer John has built a new long barn, with N (2 <= N <= 100,000) stalls. The stalls are located along a straight line at positions x1,...,xN (0 <= xi <= 1,000,000,000).
His C (2 <= C <= N) cows don'
原创
2021-10-11 22:10:35 ·
472 阅读 ·
0 评论