随笔分类 -  模拟

摘要:模拟水题/************************************************* Author :Powatr* Created Time :2015/10/21 12:53:05* File Name :B.cpp ***************... 阅读全文
posted @ 2015-10-21 14:07 Painting、时光 阅读(170) 评论(0) 推荐(0)
摘要:Problem DescriptionMr. Hdu is an painter, as we all know, painters need ideas to innovate , one day, he got stuck in rut and the ideas dry up, he took... 阅读全文
posted @ 2015-07-28 20:27 Painting、时光 阅读(162) 评论(0) 推荐(0)
摘要:We'll defineS(n)for positive integernas follows: the number of then's digits in the decimal base. For example,S(893) = 3,S(114514) = 6.You want to mak... 阅读全文
posted @ 2015-07-19 14:53 Painting、时光 阅读(236) 评论(0) 推荐(0)
摘要:Rabbit Tom and rabbit Jerry are running in a field. The field is an N×N grid. Tom starts from the up-left cell and Jerry starts from the down-right ce... 阅读全文
posted @ 2015-07-17 21:37 Painting、时光 阅读(215) 评论(0) 推荐(0)
摘要:Imagine that you have to prepare a problem set for the forthcoming programming contest and you have already chosen the problems you will use in it. Be... 阅读全文
posted @ 2015-07-17 21:34 Painting、时光 阅读(193) 评论(0) 推荐(0)
摘要:Right turnfrog is trapped in a maze. The maze is infinitely large and divided into grids. It also consists ofnobstacles, where thei-th obstacle lies i... 阅读全文
posted @ 2015-07-15 00:11 Painting、时光 阅读(229) 评论(0) 推荐(0)
摘要:ProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyo... 阅读全文
posted @ 2015-07-14 15:27 Painting、时光 阅读(166) 评论(0) 推荐(0)
摘要:Problem DescriptionMike does not want others to view his messages, so he find a encode method Base64.Here is an example of the note in Chinese Passpor... 阅读全文
posted @ 2015-05-26 23:54 Painting、时光 阅读(219) 评论(0) 推荐(0)
摘要:Problem Description列变位法是古典密码算法中变位加密的一种方法,具体过程如下 将明文字符分割成个数固定的分组(如5个一组,5即为密钥),按一组一行的次序整齐排列,最后不足一组不放置任何字符,完成后按列读取即成密文。比如:原文:123456789密钥:4变换后的矩阵:12345678... 阅读全文
posted @ 2015-05-25 11:27 Painting、时光 阅读(394) 评论(0) 推荐(0)
摘要:Problem Description当今世界,网络已经无处不在了,小度熊由于犯了错误,当上了度度公司的网络管理员,他手上有大量的 IP列表,小度熊想知道在某个固定的子网掩码下,有多少个网络地址。网络地址等于子网掩码与 IP 地址按位进行与运算后的结果,例如:子网掩码:A.B.C.DIP 地址:a.... 阅读全文
posted @ 2015-05-25 10:52 Painting、时光 阅读(210) 评论(0) 推荐(0)
摘要:DescriptionIn a modernized warehouse, robots are used to fetch the goods. Careful planning is needed to ensure that the robots reach their destination... 阅读全文
posted @ 2015-03-04 21:27 Painting、时光 阅读(189) 评论(0) 推荐(0)
摘要:DescriptionLet S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways:q By an integer sequence P = p1 p2...pn ... 阅读全文
posted @ 2015-03-04 16:21 Painting、时光 阅读(117) 评论(0) 推荐(0)