上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 42 下一页
摘要: Popular Products 描述 Given N lists of customer purchase, your task is to find the products that appear in all of the lists. A purchase list consists of 阅读全文
posted @ 2016-07-27 15:43 mxzf0213 阅读(181) 评论(0) 推荐(0) 编辑
摘要: Binary Watch 描述 Consider a binary watch with 5 binary digits to display hours (00 - 23) and 6 binary digits to display minutes (00 - 59). For example 阅读全文
posted @ 2016-07-27 15:34 mxzf0213 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 奇怪的电梯 题目描述 有一天桐桐做了一个梦,梦见了一种很奇怪的电梯。大楼的每一层楼都可以停电梯,而且第i层楼(1≤i≤N)上有一个数字K;(0≤Ki≤N)。电梯只有四 个按钮:开,关,上,下。上下的层数等于当前楼层上的那个数字。当然,如果不能满足要求,相应的按钮就会失灵。例如:3 3 1 2 5代表 阅读全文
posted @ 2016-07-25 14:36 mxzf0213 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 穿越泥地(mud) 题目描述 清早6:00,FJ就离开了他的屋子,开始了他的例行工作:为贝茜挤奶。前一天晚上,整个农场刚经受过一场瓢泼大雨的洗礼,于是不难想象,FJ现在面对的 是一大片泥泞的土地。FJ的屋子在平面坐标(0,0)的位置j贝茜所在的牛棚则位于坐标(x,y) (-500≤x≤500; -5 阅读全文
posted @ 2016-07-25 14:34 mxzf0213 阅读(494) 评论(0) 推荐(0) 编辑
摘要: 救援行动(save) 题目描述 Angel被人抓住关在一个迷宫了!迷宫的长、宽均不超过200,迷宫中有不可以越过的墙以及监狱的看守。Angel的朋友带了一个救援队来到了迷宫中。他们的任务是:接近Angel。我们假设接近Angel就是到达Angel所在的位置。假设移动需要1单位时间,杀死一个看守也需要 阅读全文
posted @ 2016-07-25 14:32 mxzf0213 阅读(392) 评论(0) 推荐(0) 编辑
摘要: As Fast As Possible On vacations n pupils decided to go on excursion and gather all together. They need to overcome the path with the length l meters. 阅读全文
posted @ 2016-07-24 16:09 mxzf0213 阅读(518) 评论(0) 推荐(0) 编辑
摘要: Connecting Universities Connecting Universities Treeland is a country in which there are n towns connected by n - 1 two-way road such that it's possib 阅读全文
posted @ 2016-07-24 13:11 mxzf0213 阅读(279) 评论(0) 推荐(0) 编辑
摘要: They Are Everywhere They Are Everywhere Sergei B., the young coach of Pokemons, has found the big house which consists of n flats ordered in a row fro 阅读全文
posted @ 2016-07-24 13:07 mxzf0213 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Cells Not Under Attack Cells Not Under Attack Vasya has the square chessboard of size n × n and m rooks. Initially the chessboard is empty. Vasya will 阅读全文
posted @ 2016-07-24 13:04 mxzf0213 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 吃饭 题目描述 桐桐放学了,在学校食堂吃起了饭….这里的饭十分好吃,但是桐桐的钱有限且肚子空间有限(^_^),虽然每种饭有无限多,但他只能吃部分,且每一种饭可增加一定的能量。桐桐觉得自己有点胖,于是下了一个决心:我今天只吃第二多能量值的饭!请你输出他所吃的饭的能量值。注意:第二多能量值的饭一定不等于 阅读全文
posted @ 2016-07-24 12:58 mxzf0213 阅读(240) 评论(-1) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 42 下一页