二分三分
文章平均质量分 72
sunshine668
这个作者很懒,什么都没留下…
展开
-
POJ1905 Expanding Rods
Problem DescriptionWhen a thin rod of length L is heated n degrees, it expands to a new length L'=(1+n*C)*L, where C is the coefficient of heat expansion.When a thin rod is mounted on two solid原创 2014-03-15 13:03:12 · 497 阅读 · 0 评论 -
Aggressive cows 二分
DescriptionFarmer John has built a new long barn, with N (2 His C (2 <= C <= N) cows don't like this barn layout and become aggressive towards each other once put into a stall. To prevent th原创 2014-07-10 13:44:21 · 399 阅读 · 0 评论 -
HDU 2578 Dating with girls(1)
Problem DescriptionEveryone in the HDU knows that the number of boys is larger than the number of girls. But now, every boy wants to date with pretty girls. The girls like to date with the boys wi原创 2014-05-30 18:10:25 · 517 阅读 · 0 评论 -
HDU 3763 CD
Problem DescriptionJack and Jill have decided to sell some of their Compact Discs, while they still have some value. They have decided to sell one of each of the CD titles that they both own. How原创 2014-05-30 16:07:54 · 588 阅读 · 0 评论 -
poj 2507Crossed ladders 计算几何,二分
Problem DescriptionA narrow street is lined with tall buildings. An x foot long ladder is rested at the base of the building on the right side of the street and leans on the building on the left sid原创 2014-03-15 12:25:52 · 609 阅读 · 0 评论 -
HDU2289:Cup(二分)
Problem DescriptionThe WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height? The radius of the cup's top and b原创 2014-03-15 15:49:53 · 533 阅读 · 0 评论 -
POJ3737:UmBasketella
Problem DescriptionIn recent days, people always design new things with multifunction. For instance, you can not only use cell phone to call your friends, but you can also use your cell phone ta原创 2014-03-15 15:32:13 · 484 阅读 · 0 评论 -
HDU 3400 Line belt (三分法)
Problem DescriptionIn a two-dimensional plane there are two line belts, there are two segments AB and CD, lxhgww's speed on AB is P and on CD is Q, he can move with the speed R on other area on the原创 2014-03-15 15:40:26 · 399 阅读 · 0 评论 -
HDU 3714 Error Curves
Problem DescriptionJosephina is a clever girl and addicted to Machine Learning recently. She pays much attention to a method called Linear Discriminant Analysis, which has many interesting propertie原创 2014-03-15 15:27:52 · 426 阅读 · 0 评论 -
HDU 2199
Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100; Now please try your lucky. InputThe first line of the input contains原创 2014-03-15 15:24:25 · 422 阅读 · 0 评论 -
zoj3203 Light Bulb(三分)
Problem DescriptionCompared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb in his house. Every night, he is wandering in his原创 2014-03-15 14:54:49 · 794 阅读 · 0 评论 -
HDU4454 Stealing a Cake
Problem DescriptionThere is a big round cake on the ground. A small ant plans to steal a small piece of cake. He starts from a certain point, reaches the cake, and then carry the piece back home. He转载 2014-03-15 15:45:20 · 418 阅读 · 0 评论 -
poj 3122 pie
Problem DescriptionMy 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原创 2014-03-14 23:21:38 · 356 阅读 · 0 评论 -
POJ1505:Copying Books(贪心+二分枚举)
Copying Books Time Limit: 3000MS Memory Limit: 10000K Total Submissions: 6169 Accepted: 1873 Description Before the invention of book-printing, it was very hard to make a copy of a b转载 2014-03-15 13:55:42 · 423 阅读 · 0 评论 -
POJ3273 Monthly Expense
Problem DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ≤原创 2014-03-15 13:16:13 · 334 阅读 · 0 评论 -
cf上的pipe
Problem DescriptionVova, the Ultimate Thule new shaman, wants to build a pipeline. As there are exactlyn houses in Ultimate Thule, Vova wants the city to have exactlyn pipes, each such pipe sh原创 2014-03-15 14:06:19 · 377 阅读 · 0 评论 -
HDU 4004 The Frog's Games(二分)
Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog ath原创 2014-03-14 23:41:07 · 481 阅读 · 0 评论 -
快速幂取模
int powermod(int a,int b,int c) { int ans=1; while(b) { if(b&1) //b是奇数,即二进制最后一位为1 ans*=(ans*a)%c; a=(a*a)%c; //权值不断开方,同时可以模c无影响原创 2014-05-30 19:56:50 · 477 阅读 · 0 评论