摘要: A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacen 阅读全文
posted @ 2017-07-28 19:22 Edee 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Background The knight is getting bored of seeing the same black and white squares again and again and has decided to make a journey around the world. 阅读全文
posted @ 2017-07-27 20:09 Edee 阅读(181) 评论(0) 推荐(0) 编辑
摘要: A university network is composed of N computers. System administrators gathered information on the traffic between nodes, and carefully divided the ne 阅读全文
posted @ 2017-07-27 09:44 Edee 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a 阅读全文
posted @ 2017-07-26 17:30 Edee 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 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,000) on a numb 阅读全文
posted @ 2017-07-26 08:53 Edee 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 有一个长方形的房间,覆盖了正方形的磁砖。每块磁砖的颜色,要么是红色,要么是黑色。一名男子站在一块黑色的磁砖上。他可以从一块磁砖移至相邻四块磁砖中的某一块。但是,他不允许在红色磁砖上移动,他只允许在黑色磁砖上移动。 编写一个程序,使得他允许重复上述的移动,判断他所能到达的黑色磁砖的数量。 输入 输入由 阅读全文
posted @ 2017-07-25 20:30 Edee 阅读(326) 评论(0) 推荐(0) 编辑
摘要: A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. 阅读全文
posted @ 2017-07-25 18:57 Edee 阅读(217) 评论(0) 推荐(0) 编辑
摘要: You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. 阅读全文
posted @ 2017-07-25 11:24 Edee 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 数组模拟链表 阅读全文
posted @ 2017-07-24 15:34 Edee 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。 你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。 Input输入包含多组测试 阅读全文
posted @ 2017-07-23 20:35 Edee 阅读(101) 评论(0) 推荐(0) 编辑