随笔分类 - 贪心
摘要:C - Ordering Pizza CodeForces - 867C C - Ordering Pizza 这个是最难的,一个贪心,很经典,但是我不会,早训结束看了题解才知道怎么贪心的。 这个是先假设每个人都可以吃到他喜欢的,就是先求出答案,然后按照b-a 排序,分别放入两个优先队列里面, 如果
阅读全文
摘要:C. Brutality time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Brutality time limit per
阅读全文
摘要:D. Diverse Garland time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Diverse Garland tim
阅读全文
摘要:C. Playlist time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Playlist time limit per t
阅读全文
摘要:Chiaki has n intervals and the i-th of them is [li, ri]. She wants to delete some intervals so that there does not exist three intervals a, b and c su
阅读全文
摘要: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
阅读全文
摘要:Polycarp has recently got himself a new job. He now earns so much that his old wallet can't even store all the money he has. Berland bills somehow com
阅读全文
摘要: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 del
阅读全文
摘要: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
阅读全文
摘要:链接:https://ac.nowcoder.com/acm/problem/16601?&headNav=acm来源:牛客网 经过11年的韬光养晦,某国研发出了一种新的导弹拦截系统,凡是与它的距离不超过其工作半径的导弹都能够被它成功拦截。当工作半径为0时,则能够拦截与它位置恰好相同的导弹。但该导弹
阅读全文

浙公网安备 33010602011771号