![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
二分贪心
文章平均质量分 68
TimEckel
救赎之道,就在其中
展开
-
B-Babelfish
Description You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them. I原创 2017-05-08 21:16:36 · 412 阅读 · 0 评论 -
Q-Tavas and Karafs
Description Karafs is some kind of vegetable in shape of an 1 × h rectangle. Tavaspolis people love Karafs and they use Karafs in almost any kind of food. Tavas, himself, is crazy about Karafs.Each Ka原创 2017-05-09 21:22:36 · 275 阅读 · 0 评论 -
G-Expanding Rods
Description When 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 walls and原创 2017-05-09 21:15:16 · 305 阅读 · 0 评论 -
F-Cable master
Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It was d原创 2017-05-09 21:11:49 · 237 阅读 · 0 评论 -
E-Aggressive cows
Description 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)原创 2017-05-09 21:06:35 · 326 阅读 · 0 评论 -
D-4 Values whose Sum is 0
Description The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) ∈ A x B x C x D are such that a + b + c + d = 0 . In原创 2017-05-09 21:00:06 · 501 阅读 · 0 评论 -
X
Description The whole family was excited by the news. Everyone knew grandpa had been an extremely good bridge player for decades, but when it was announced he would be in the Guinness Book of World Re原创 2017-05-17 18:14:16 · 261 阅读 · 0 评论 -
T
Description A factory produces products packed in square packets of the same height h and of the sizes 1*1, 2*2, 3*3, 4*4, 5*5, 6*6. These products are always delivered to customers in the square parc原创 2017-05-17 17:55:47 · 313 阅读 · 0 评论 -
S-Ride to School
Description Many graduate students of Peking University are living in Wanliu Campus, which is 4.5 kilometers from the main campus – Yanyuan. Students in Wanliu have to either take a bus or ride a bike原创 2017-05-17 17:52:05 · 901 阅读 · 0 评论 -
二分法计算a的n次方函数
int pow(int a,int n){ int ans=1; while(n) { if(n&1) ans*=a; a*=a; n>>=1; } return ans;}原创 2017-09-17 21:13:30 · 3592 阅读 · 0 评论