啥都不会啊!怎么办啊!

Fitz

慢慢来生活总会好起来的!!!

摘要: 7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层生日蛋糕,每层都是一个圆柱体。 设从下往上数第i(1 <= i <= M)层蛋糕是半径为Ri, 高度为Hi的圆柱。当i < M时,要求Ri > Ri+1且Hi > Hi+1。 由于要在蛋糕上抹奶油,为尽可能节约经费,我们希望蛋糕 阅读全文
posted @ 2018-03-09 00:01 Fitz~ 阅读(153) 评论(0) 推荐(0) 编辑
摘要: N堆石子摆成一条线。现要将石子有次序地合并成一堆。规定每次只能选相邻的2堆石子合并成新的一堆,并将新的一堆石子数记为该次合并的代价。计算将N堆石子合并成一堆的最小代价。 例如: 1 2 3 4,有不少合并方法 1 2 3 4 => 3 3 4(3) => 6 4(9) => 10(19) 1 2 3 阅读全文
posted @ 2018-03-08 22:05 Fitz~ 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Problem Description Ruins is driving a car to participating in a programming contest. As on a very tight schedule, he will drive the car without any s 阅读全文
posted @ 2018-03-08 21:21 Fitz~ 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Long long ago there is a strong tribe living on the earth. They always have wars and eonquer others. One day, there is another tribe become their targ 阅读全文
posted @ 2018-03-08 20:44 Fitz~ 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Alice and Bob's game never ends. Today, they introduce a new game. In this game, both of them have N different rectangular cards respectively. Alice w 阅读全文
posted @ 2018-03-08 17:57 Fitz~ 阅读(169) 评论(0) 推荐(0) 编辑
摘要: John is going on a fishing trip. He has h hours available (1 <= h <= 16), and there are n lakes in the area (2 <= n <= 25) all reachable along a singl 阅读全文
posted @ 2018-03-07 23:54 Fitz~ 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2018-03-07 19:02 Fitz~ 阅读(213) 评论(0) 推荐(0) 编辑
摘要: A supermarket has a set Prod of products on sale. It earns a profit px for each product x∈Prod sold by a deadline dx that is measured as an integral n 阅读全文
posted @ 2018-03-07 15:31 Fitz~ 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Farmer John has received a noise complaint from his neighbor, Farmer Bob, stating that his cows are making too much noise. FJ's N cows (1 <= N <= 10,0 阅读全文
posted @ 2018-03-07 15:01 Fitz~ 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Modern text editors usually show some information regarding the document being edited. For example, the number of words, the number of pages, or the n 阅读全文
posted @ 2018-03-07 13:54 Fitz~ 阅读(162) 评论(0) 推荐(0) 编辑