02 2018 档案

摘要:Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each oth 阅读全文
posted @ 2018-02-23 17:23 听风不成泣 阅读(274) 评论(0) 推荐(0) 编辑
摘要: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 ar 阅读全文
posted @ 2018-02-22 17:29 听风不成泣 阅读(204) 评论(0) 推荐(0) 编辑
摘要:Description The cows have purchased a yogurt factory that makes world-famous Yucky Yogurt. Over the next N (1 <= N <= 10,000) weeks, the price of milk 阅读全文
posted @ 2018-02-20 11:19 听风不成泣 阅读(666) 评论(0) 推荐(0) 编辑
摘要:Description Oh those picky N (1 <= N <= 50,000) cows! They are so picky that each one will only be milked over some precise time interval A..B (1 <= A 阅读全文
posted @ 2018-02-20 10:59 听风不成泣 阅读(166) 评论(0) 推荐(0) 编辑
摘要:[提交][状态][讨论版] 题目描述 修罗王和邪狼被关进监狱,该监狱的地下秩序实际被不少暗势力所把持,这些暗势力根据其实力不同,划分出了大大小小的势力范围。具体划分方式是这样的:监狱是一个给定的矩形,每一个暗势力的势力范围都必须是一个正方形,划分时,最大的暗势力尽可能多地从矩形中划分一块正方形,接下 阅读全文
posted @ 2018-02-13 21:52 听风不成泣 阅读(459) 评论(0) 推荐(0) 编辑
摘要:题目描述 有一条河,左边一个石墩(A区)上有编号为1,2,3,4,…,n的n只青蛙,河中有k个荷叶(C区),还有h个石墩(D区),右边有一个石墩(B区),如下图2—5所示。n只青蛙要过河(从左岸石墩A到右岸石墩B),规则为: (1)石墩上可以承受任意多只青蛙,荷叶只能承受一只青蛙(不论大小); (2 阅读全文
posted @ 2018-02-13 21:42 听风不成泣 阅读(494) 评论(0) 推荐(0) 编辑
摘要:Problem Description Angel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There a 阅读全文
posted @ 2018-02-13 15:38 听风不成泣 阅读(190) 评论(0) 推荐(0) 编辑
摘要:Description Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 阅读全文
posted @ 2018-02-13 11:27 听风不成泣 阅读(184) 评论(0) 推荐(0) 编辑
摘要:Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,00 阅读全文
posted @ 2018-02-12 22:48 听风不成泣 阅读(144) 评论(0) 推荐(0) 编辑
摘要:Description 给定一个m × n (m行, n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中,当然在行走过程中,gloria不能走到迷宫 阅读全文
posted @ 2018-02-11 10:32 听风不成泣 阅读(217) 评论(0) 推荐(0) 编辑
摘要:Description 呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体. Harry已经将他所会的所有 阅读全文
posted @ 2018-02-10 22:38 听风不成泣 阅读(154) 评论(0) 推荐(0) 编辑
摘要:Description Given a number N, you are asked to count the number of integers between A and B inclusive which are relatively prime to N. Two integers ar 阅读全文
posted @ 2018-02-08 16:52 听风不成泣 阅读(177) 评论(0) 推荐(0) 编辑
摘要:Problem Description 经过锦囊相助,海东集团终于度过了危机,从此,HDU的发展就一直顺风顺水,到了2050年,集团已经相当规模了,据说进入了钱江肉丝经济开发区500强。这时候,XHD夫妇也退居了二线,并在风景秀美的诸暨市浬浦镇陶姚村买了个房子,开始安度晚年了。这样住了一段时间,徐总 阅读全文
posted @ 2018-02-07 21:41 听风不成泣 阅读(204) 评论(0) 推荐(0) 编辑
摘要:Description Little Susie listens to fairy tales before bed every day. Today's fairy tale was about wood cutters and the little girl immediately starte 阅读全文
posted @ 2018-02-07 16:15 听风不成泣 阅读(416) 评论(0) 推荐(0) 编辑
摘要:题目描述 张琪曼等人用时空雷达定位李旭琳所在的空间位置。如图7.3所示,时空雷达装在一条直线上,直线上方是空间海洋,每个人在空间海洋的位置就如同大海中的岛屿,这些人的位置已知,每一个雷达的扫描范围是一个半径为d的圆形区域,问最少需要多少个雷达覆盖所有的人(岛屿)。 输入 输入包括多组测试数据,每组测 阅读全文
posted @ 2018-02-07 12:03 听风不成泣 阅读(389) 评论(0) 推荐(0) 编辑
摘要:Description 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 阅读全文
posted @ 2018-02-07 12:01 听风不成泣 阅读(263) 评论(0) 推荐(0) 编辑
摘要:Description One day , Kiki wants to visit one of her friends. As she is liable to carsickness , she wants to arrive at her friend’s home as soon as po 阅读全文
posted @ 2018-02-07 11:36 听风不成泣 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Description 虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗~),但是草儿仍然很喜欢旅行,因为在旅途中 会遇见很多人(白马王子,^0^),很多事,还能丰富自己的阅历,还可以看美丽的风景……草儿想去很多地方,她想要去东京铁塔看夜景,去威尼斯看电影,去阳明山上看海芋,去纽 阅读全文
posted @ 2018-02-07 10:15 听风不成泣 阅读(193) 评论(0) 推荐(0) 编辑
摘要:题目描述 话说张琪曼和李旭琳又发现了一处魔法石矿(运气怎么这么好?各种嫉妒羡慕恨啊),她们有一个最多能装m公斤的背包,现在有n种魔法石,每种的重量分别是W1,W2,…,Wn,每种的价值分别为C1,C2,…,Cn。若每种魔法石的个数足够多,求她们能获得的最大总价值。 输入 第一行为两个整数,即m,n。 阅读全文
posted @ 2018-02-06 17:28 听风不成泣 阅读(185) 评论(0) 推荐(0) 编辑
摘要:转自:https://www.cnblogs.com/heqinghui/archive/2013/07/30/3225407.html 阅读全文
posted @ 2018-02-06 15:57 听风不成泣 阅读(190) 评论(0) 推荐(0) 编辑
摘要:题目描述 通过魔法钟回来的张琪曼和魔法学院的其他学员一起研究营救李旭琳脱离“时空陷”的方法。他们建立了n个对历史时间线的监控点,每个监控点可监控历史上的一个时间段,我们可以简单地看做是 x 轴上 n 个闭区间。但有些监控点监控的时间段是重叠的,这会干扰监控的准确性。请尝试去掉尽可能少的闭区间,使剩下 阅读全文
posted @ 2018-02-06 15:55 听风不成泣 阅读(254) 评论(0) 推荐(0) 编辑
摘要:题目描述 Description 给定x轴上的N(0<N<100)条线段,每个线段由它的二个端点a_I和b_I确定,I=1,2,……N.这些坐标都是区间(-999,999)的整数。有些线段之间会相互交叠或覆盖。请你编写一个程序,从给出的线段中去掉尽量少的线段,使得剩下的线段两两之间没有内部公共点。所 阅读全文
posted @ 2018-02-06 15:16 听风不成泣 阅读(157) 评论(0) 推荐(0) 编辑
摘要:Description Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes 阅读全文
posted @ 2018-02-05 13:59 听风不成泣 阅读(159) 评论(0) 推荐(0) 编辑
摘要:Description FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q 阅读全文
posted @ 2018-02-04 12:03 听风不成泣 阅读(160) 评论(0) 推荐(0) 编辑
摘要:转载于:http://c.biancheng.net/cpp/biancheng/view/116.html 输入和输出并不是C++语言中的正式组成成分。C和C++本身都没有为输入和输出提供专门的语句结构。输入输出不是由C++本身定义的,而是在编译系统提供的I/O库中定义的。 C++的输出和输入是用 阅读全文
posted @ 2018-02-02 13:56 听风不成泣 阅读(343) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示