ACM-二分
寻找星空的孩子
CSDN博客首页:http://blog.csdn.net/u010579068?viewmode=list
博客园地址:http://www.cnblogs.com/yuyixingkong/
展开
-
贪心(bnuoj49103+二分+贪心)
贪心 小明喜欢养小鸡,小鸡喜欢吃小米。小明很贪心,希望养s只不同种类的小鸡,小鸡也很贪心,每天除了吃固定的ai粒小米外,还想多吃bi*s粒小米。小明每天有M(0(0种。问小明最多可以养多少只小鸡? Input多组数据,请读到文件尾第一行,整数N,M,以空格分隔,之后两行,第一行为N个整数ai,第二行为N个整数bi。ai、bi都在int范围内原创 2015-05-10 00:21:50 · 2111 阅读 · 3 评论 -
Incircle and Circumcircle(二分+几何)浙大月赛zoj3806(详解版)图
Incircle and CircumcircleTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeA triangle is one the basic shapes in geometry. It's a polygon with three vertices and three sides which are line s原创 2015-03-23 11:30:05 · 973 阅读 · 0 评论 -
Median(vector+二分)
MedianTime Limit: 5 Seconds Memory Limit: 65536 KBThe median of m numbers is after sorting them in order, the middle one number of them if m is even or the average number of the middle 2 numbers i原创 2015-03-23 11:30:39 · 569 阅读 · 0 评论 -
Aquarium Tank(csu1634+几何+二分)Contest2087 - 湖南多校对抗赛(2015.05.24)-G
Aquarium TankTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 15 Solved: 4[Submit][Status][Web Board]DescriptionYou just bought an “artistic” aquarium tank that has an interesting shape,原创 2015-05-26 01:11:20 · 1436 阅读 · 0 评论