二分
w_m_wm_wm_wm_w_m
这个作者很懒,什么都没留下…
展开
-
POJ2456 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 ...原创 2019-07-29 20:58:30 · 199 阅读 · 0 评论 -
HRBUST - 1530
题目 My birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party and each ...原创 2019-07-29 21:11:15 · 60 阅读 · 0 评论 -
CodeForces - 1156C
题目 有n个数字,x1,x2,xn;两个数字能够匹配要满足: 1:i,j没有被匹配过 //注意这里意思是i和j都没有被使用过 2:|xi-xj|>=z 问最多有多少对能够匹配 Input 第一行输入两个正整数n和z。2<=n<2e5,1<=z<=1e9 第二行输入n个正整数 x1到xn 1<=xi<=1e9 Output 输出一个正整数,最多有...原创 2019-08-07 14:28:46 · 217 阅读 · 0 评论