随笔分类 - 贪心
摘要:Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea
阅读全文
摘要:In the year 8888, the Earth is ruled by the PPF Empire . As the population growing , PPF needs to find more land for the newborns . Finally , PPF deci
阅读全文
摘要:Farmer John is assigning some of his N (1 include include using namespace std; const int maxn=3e4; struct shift { int beg,end; bool operator a.end:beg
阅读全文
摘要:Our chemical biologists have invented a new very useful form of life called stripies (in fact, they were first called in Russian polosatiki, but the s
阅读全文
摘要:Farmer John went to cut some wood and left N (2 ≤ N ≤ 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the clus
阅读全文
摘要:Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of
阅读全文
摘要:Saruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes seeing stone
阅读全文
摘要:FJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest every farmer arranges his cows in a line
阅读全文

浙公网安备 33010602011771号