二分贪心
尒轩窗
这个作者很懒,什么都没留下…
展开
-
X - 24
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 Wor原创 2017-04-29 21:27:14 · 237 阅读 · 0 评论 -
transform
链接:https://www.nowcoder.com/acm/contest/140/G 题目描述 White Cloud placed n containers in sequence on a axes. The i-th container is located at x[i] and there are a[i] number of products in it. White R...原创 2018-07-22 21:43:26 · 181 阅读 · 0 评论 -
money
链接:https://www.nowcoder.com/acm/contest/140/D 题目描述 White Cloud has built n stores numbered from 1 to n. White Rabbit wants to visit these stores in the order from 1 to n. The store numbered i has ...原创 2018-07-21 21:52:50 · 121 阅读 · 0 评论 -
G - 07*
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原创 2017-04-29 21:07:41 · 200 阅读 · 0 评论 -
B - River Hopscotch
Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straight river with a ro原创 2017-08-18 09:37:35 · 407 阅读 · 0 评论 -
C - 1003
Slastyona and her loyal dog Pushok are playing a meaningless game that is indeed very interesting. The game consists of multiple rounds. Its rules are very simple: in each round, a natural number k i原创 2017-08-01 20:27:51 · 264 阅读 · 0 评论 -
F - 06
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原创 2017-04-25 22:11:44 · 369 阅读 · 0 评论 -
E - 05
Description Farmer 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原创 2017-04-25 22:00:28 · 219 阅读 · 0 评论 -
D - 04
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原创 2017-04-25 21:49:51 · 192 阅读 · 0 评论 -
V - 22
Description An integer interval [a,b], a Write a program that: finds the minimal number of elements in a set containing at least two different integers from each interval. Input T原创 2017-05-03 13:19:51 · 209 阅读 · 0 评论 -
U - 21
Description Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. "Look, I've built a wall!", he tells his older sister Alice原创 2017-04-19 13:55:05 · 349 阅读 · 0 评论 -
T - 20
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原创 2017-04-19 13:47:53 · 246 阅读 · 0 评论 -
B - 02
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 the原创 2017-04-18 21:33:57 · 224 阅读 · 0 评论 -
p1m2 【二分】2018 “百度之星”程序设计大赛 - 初赛(B)
http://acm.hdu.edu.cn/showproblem.php?pid=6383 Problem Description 度度熊很喜欢数组!! 我们称一个整数数组为稳定的,若且唯若其同时符合以下两个条件: 1. 数组里面的元素都是非负整数。 2. 数组里面最大的元素跟最小的元素的差值不超过 1 。 举例而言,[1,2,1,2] 是稳定的,而 [...原创 2018-08-13 10:29:06 · 193 阅读 · 0 评论