摘要: In mathematics, the four color theorem, or the four color map theorem, states that, given any separation of a plane into contiguous regions, producing 阅读全文
posted @ 2017-07-26 20:41 山杉三 阅读(299) 评论(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-26 16:25 山杉三 阅读(295) 评论(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-25 14:12 山杉三 阅读(244) 评论(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-24 11:13 山杉三 阅读(236) 评论(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-24 11:06 山杉三 阅读(211) 评论(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-24 11:02 山杉三 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。 你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。 Input输入包含多组测试 阅读全文
posted @ 2017-07-23 14:48 山杉三 阅读(145) 评论(0) 推荐(0) 编辑
摘要: I’m out of stories. For years I’ve been writing stories, some rather silly, just to make simple problems look difficult and complex problems look easy 阅读全文
posted @ 2017-07-23 14:45 山杉三 阅读(129) 评论(0) 推荐(0) 编辑
摘要: Holedox is a small animal which can be considered as one point. It lives in a straight pipe whose length is L. Holedox can only move along the pipe. C 阅读全文
posted @ 2017-07-23 14:42 山杉三 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Alice and Bob love playing one-dimensional battle ships. They play on the field in the form of a line consisting of n square cells (that is, on a 1 ×  阅读全文
posted @ 2017-07-23 14:41 山杉三 阅读(151) 评论(0) 推荐(0) 编辑