自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 C程序设计语言——导言

1. Hello, world#include main(){ printf("Hello, world\n");}a. #include 用于告诉编译器在本程序中包含标准输入/输出库的信息。b. printf是一个用于打印输出的库函数。顺便指出,printf函数并不是C语言本身的一部分,C语言本身并没有定义输入输出功能。printf仅仅是标准库函数中的一个有用的函数而已

2015-08-03 14:57:19 542

原创 Network of Schools (POJ 1236)

DescriptionA number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a list of schools to which it distributes software (th

2015-07-31 10:54:08 345

原创 The Unique MST (POJ 1679)

DescriptionGiven a connected undirected graph, tell if its minimum spanning tree is unique. Definition 1 (Spanning Tree): Consider a connected, undirected graph G = (V, E). A spanning tree of

2015-07-31 01:10:06 366

原创 Arctic Network (POJ 2349)

DescriptionThe Department of National Defence (DND) wishes to connect several northern outposts by a wireless network. Two different communication technologies are to be used in establishing the n

2015-07-31 00:14:58 350

原创 Stockbroker Grapevine (POJ 1125)

DescriptionStockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to give your employer the tactical edge

2015-07-30 22:46:53 344

原创 Currency Exchange (POJ 1860)

DescriptionSeveral currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies and performs exchange operations only with these curren

2015-07-30 20:42:50 307

原创 鸣人和佐助

描述佐助被大蛇丸诱骗走了,鸣人在多少时间内能追上他呢?已知一张地图(以二维矩阵的形式表示)以及佐助和鸣人的位置。地图上的每个位置都可以走到,只不过有些位置上有大蛇丸的手下,需要先打败大蛇丸的手下才能到这些位置。鸣人有一定数量的查克拉,每一个单位的查克拉可以打败一个大蛇丸的手下。假设鸣人可以往上下左右四个方向移动,每移动一个距离需要花费1个单位时间,打败大蛇丸的手下不需要时间。如果鸣

2015-07-30 13:24:27 4739

原创 Candies ( POJ 3159)

DescriptionDuring the kindergarten days, flymouse was the monitor of his class. Occasionally the head-teacher brought the kids of flymouse’s class a large bag of candies and had flymouse distrib

2015-07-28 11:35:40 484

原创 Agri-Net (POJ 1258)

DescriptionFarmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs your help, of course. Farmer John or

2015-07-28 09:26:56 424

原创 Wormholes (POJ 3259)

DescriptionWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-way path that delivers you to its destination a

2015-07-27 23:46:36 333

原创 拯救公主

描述    多灾多难的公主又被大魔王抓走啦!国王派遣了第一勇士阿福去拯救她。    身为超级厉害的术士,同时也是阿福的好伙伴,你决定祝他一臂之力。你为阿福提供了一张大魔王根据地的地图,上面标记了阿福和公主所在的位置,以及一些不能够踏入的禁区。你还贴心地为阿福制造了一些传送门,通过一个传送门可以瞬间转移到任意一个传送门,当然阿福也可以选择不通过传送门瞬移。传送门的位置也被标记在了地图上。此外

2015-07-27 10:28:48 3716 2

原创 Saving Tang Monk

描述《Journey to theWest》(also 《Monkey》) is one of the Four Great Classical Novelsof Chinese literature. It was writtenby Wu Cheng'en during the Ming Dynasty. In this novel, Monkey King Sun Wukong,

2015-07-26 22:11:26 760

原创 泰国佛塔

描述泰囧,大家应该都看过。不知道大家有没有注意到宝宝虔诚祈福的寺庙里的金灿灿的佛塔。      众所周知,泰国佛塔外面是贴金的,而且金箔过一段时间需要修补。泰国经济自上世纪末就不景气,贴金的开支对于寺庙来说也是个比较大的负担。          这里请同学来帮助寺庙设计下佛塔的模型,以使佛塔的外表面(最下层的下底面除外)的面积最小。从而节省金箔开支。      这里抽象佛塔形状为,

2015-07-26 19:16:19 2361

原创 怪盗基德的滑翔翼

描述怪盗基德是一个充满传奇色彩的怪盗,专门以珠宝为目标的超级盗窃犯。而他最为突出的地方,就是他每次都能逃脱中村警部的重重围堵,而这也很大程度上是多亏了他随身携带的便于操作的滑翔翼。有一天,怪盗基德像往常一样偷走了一颗珍贵的钻石,不料却被柯南小朋友识破了伪装,而他的滑翔翼的动力装置也被柯南踢出的足球破坏了。不得已,怪盗基德只能操作受损的滑翔翼逃脱。假设城市

2015-07-26 17:42:04 1127

原创 熄灯问题(百练2811)

#include #include #include using namespace std;/*解题思路:给定房间灯光现状矩阵matrix,令操作矩阵press全取0;不管第一行的灯光矩阵是怎么样的,第二行的press都有办法把第一行的灯光全部熄灭;依次类推,第i行的press总有办法把第i-1行的灯光全部熄灭;因此,只要第一行的press取值定下来,一定有办法让第1到第4

2015-07-26 11:10:30 566

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除