MPI Maelstrom (dijkstra)

 MPI Maelstrom BIT has recently taken delivery of their new supercomputer, a 32 processor Apollo Odyssey distributed shared memory machine with a hie...

2018-04-30 10:21:22

阅读数:33

评论数:1

龟兔赛跑 HDU - 2059(DP)

龟兔赛跑 HDU - 2059据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想找机会好好得教训一下乌龟,以雪前耻。 最近正值HD...

2018-04-20 15:25:54

阅读数:28

评论数:0

CodeForces - 546D Soldier and Number Game

Soldier and Number GameTwo soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldie...

2018-04-19 19:34:01

阅读数:35

评论数:0

Wormholes (Bellman_Ford)

WormholesWhile exploring his many farms, Farmer John has discovered a number of amazing wormholes. A wormhole is very peculiar because it is a one-wa...

2018-04-18 14:47:30

阅读数:30

评论数:0

Currency Exchange (Bellman-Ford)

Currency Exchange Several currency exchange points are working in our city. Let us suppose that each point specializes in two particular currencies a...

2018-04-17 10:46:52

阅读数:26

评论数:0

Silver Cow Party (dijkstra)

Silver Cow Party One cow from each of N farms (1 ≤ N ≤ 1000) conveniently numbered 1..N is going to attend the big cow party to be held at farm #X (1...

2018-04-17 09:41:55

阅读数:16

评论数:0

Heavy Transportation

Heavy Transportation Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever...

2018-04-17 09:35:38

阅读数:16

评论数:0

Frogger (最短路)

FroggerFreddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit h...

2018-04-16 20:58:47

阅读数:31

评论数:0

水陆距离 HihoCoder - 1478

 水陆距离 HihoCoder - 1478给定一个N x M的01矩阵,其中1表示陆地,0表示水域。对于每一个位置,求出它距离最近的水域的距离是多少。  矩阵中每个位置与它上下左右相邻的格子距离为1。Input第一行包含两个整数,N和M。以下N行每行M个0或者1,代表地图。数据保证至少有1块水域...

2018-04-11 19:51:58

阅读数:25

评论数:0

小数数字 HihoCoder - 1720

小数数字 HihoCoder - 1720 给定一个真分数P/Q(P < Q),请你求出它的小数部分都包括0~9中的哪些数字。  例如1/2=0.5,只包含数字5;1/3=0.33333……,只包含数字3,1/7=0.142857142857……,包含数字124578。Inp...

2018-04-11 19:17:58

阅读数:70

评论数:0

Constructing Roads

Constructing Roads 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 ...

2018-04-06 15:50:56

阅读数:20

评论数:0

Building a Space Station

Building a Space Station You are a member of the space station engineering team, and are assigned a task in the construction process of the station. ...

2018-04-06 15:36:27

阅读数:18

评论数:0

Jungle Roads(最小生成树 Kruskal)

Jungle Roads   The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between v...

2018-04-06 15:12:20

阅读数:32

评论数:0

数数字 51Nod - 1770

 数数字 51Nod - 1770 统计一下 个aaa ⋯ aaa⏟n个a × b 的结果里面有多少个数字d,a,b,d均为一位数。样例解释:3333333333*3=9999999999,里面有10个9。Input多组测试数据。 第一行有一个整数T,表示测试数据的数目。(1≤T≤5000) 接下...

2018-04-05 18:43:00

阅读数:53

评论数:0

HDU - 1978 How many ways

How many ways这是一个简单的生存游戏,你控制一个机器人从一个棋盘的起始点(1,1)走到棋盘的终点(n,m)。游戏的规则描述如下: 1.机器人一开始在棋盘的起始点并有起始点所标有的能量。 2.机器人只能向右或者向下走,并且每走一步消耗一单位能量。 3.机器人不能在原地停留。 4.当机器人...

2018-04-04 20:00:08

阅读数:53

评论数:0

HRBUST - 2322 team

teamKim 正在玩一款手游,在这款游戏中,Kim可以选择若干个角色编成一队作战。为了挑战不同的关卡,Kim需要不断的调整编队阵容。然而随着游戏不断更新,队伍成员变得越来越多,Kim已经记不清哪些角色在队伍中,哪些角色不在队伍中了。请你写一个程序来帮助他。具体来说,Kim有三种可以执行的操作。1...

2018-04-04 00:02:38

阅读数:81

评论数:0

畅通工程续

畅通工程续某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一个城镇时,都有许多种道路方案可以选择,而某些方案要比另一些方案行走的距离要短很多。这让行人很困扰。 现在,已知起点和终点,请你计算出要从起点到终点,最短需要行走多少距离。Input本题目包含多...

2018-04-03 22:32:42

阅读数:37

评论数:1

UVA - 624

You have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is onCDs. You need to have it on tapes so the problem...

2018-04-02 21:29:28

阅读数:29

评论数:0

HihoCoder - 1700

在CSS中我们可以用井号(#)加6位十六进制数表示一种颜色,例如#000000是黑色,#ff0000是红色,#ffd700是金色。  同时也可以将六位颜色#RRGGBB简写为#RGB三位颜色。例如#000与#000000是相同的,#f00与#ff0000是相同的,#639与#663399是相同的。...

2018-04-02 19:27:49

阅读数:34

评论数:0

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