上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 48 下一页
摘要: 问题描述YT 市是一个规划良好的城市,城市被东西向和南北向的主干道划分为 n×n个区域。简单起见,可以将 YT 市看作 一个正方形,每一个区域也可看作一个正方形。从而,YT 城市中包括(n+1)×(n+1)个交叉路口和 2n×(n+1)条双向道路(简称道路),每条双向 道路连接主干道上两个相邻的交叉 阅读全文
posted @ 2016-09-20 17:13 ljh_2000 阅读(1308) 评论(0) 推荐(1) 编辑
摘要: Description Input 第 一行包含两个整数N、M。N表示路口的个数,M表示道路条数。接下来M行,每行两个整数,这两个整数都在1到N之间,第i+1行的两个整数表示第i条道路 的起点和终点的路口编号。接下来N行,每行一个整数,按顺序表示每个路口处的ATM机中的钱数。接下来一行包含两个整数S 阅读全文
posted @ 2016-09-20 15:32 ljh_2000 阅读(298) 评论(0) 推荐(0) 编辑
摘要: Description Serpent(水 蛇)生活的地方有N个水坑,编号为0,...,N - 1,有M条双向小路连接这些水坑。每两个水坑之间至多有一条路径(路径包含一条或多条小路)相互连接,有些水坑之间根本无法互通(即M ≤ N-1 )。Serpent走过每条小路需要一个固定的天数,不同的小路需要 阅读全文
posted @ 2016-09-20 14:38 ljh_2000 阅读(278) 评论(1) 推荐(0) 编辑
摘要: 题目描述 Description 对于包含字母A到Y各一次的单词S,将其从上到下从左到右写在一个5*5的矩阵中,如单词ADJPTBEKQUCGLRVFINSWHMOXY写出来如下: A D J P T B E K Q U C G L R V F I N S W H M O X Y 若该矩阵满足每一行 阅读全文
posted @ 2016-09-19 22:57 ljh_2000 阅读(674) 评论(0) 推荐(2) 编辑
摘要: Description One day Vasya was solving arithmetical problems. He wrote down an expression a + b = c in his notebook. When the teacher checked Vasya's w 阅读全文
posted @ 2016-09-19 19:04 ljh_2000 阅读(589) 评论(0) 推荐(0) 编辑
摘要: Description Little penguin Polo adores strings. But most of all he adores strings of length n. One day he wanted to find a string that meets the follo 阅读全文
posted @ 2016-09-19 17:15 ljh_2000 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Description 所谓虫食算,就是原先的算式中有一部分被虫子啃掉了,需要我们根据剩下的数字来判定被啃掉的字母。来看一个简单的例子: 43#9865#045 + 8468#6633 44445506978 其中#号代表被虫子啃掉的数字。根据算式,我们很容易判断:第一行的两个数字分别是5 阅读全文
posted @ 2016-09-19 17:09 ljh_2000 阅读(263) 评论(0) 推荐(0) 编辑
摘要: Description The closing ceremony of Squanch Code Cup is held in the big hall with n × m seats, arranged in n rows, m seats in a row. Each seat has two 阅读全文
posted @ 2016-09-18 22:42 ljh_2000 阅读(610) 评论(0) 推荐(0) 编辑
摘要: Description Consider a regular triangular area, divide it into four equal triangles of half height and remove the one in the middle. Apply the same op 阅读全文
posted @ 2016-09-18 22:24 ljh_2000 阅读(1186) 评论(0) 推荐(0) 编辑
摘要: 【问题描述】传说中的九头龙是一种特别贪吃的动物。虽然名字叫“九头龙”,但这只是说它出生的时候有九个头,而在成长的过程中,它有时会长出很多的新头,头的总数会远大于九,当然也会有旧头因衰老而自己脱落。有一天,有 M 个脑袋的九头龙看到一棵长有 N 个果子的果树,喜出望外,恨不得一口把它全部吃掉。可是必须 阅读全文
posted @ 2016-09-18 15:35 ljh_2000 阅读(219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 48 下一页