上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 66 下一页
摘要: Tree Problem Description You are given a tree (an acyclic undirected connected graph) with N nodes. The tree nodes are numbered from 1 to NThere are N 阅读全文
posted @ 2017-04-13 20:47 meekyan 阅读(378) 评论(0) 推荐(0) 编辑
摘要: Little Devil I Problem Description There is an old country and the king fell in love with a devil. The devil always asks the king to do some crazy thi 阅读全文
posted @ 2017-04-13 17:05 meekyan 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Sometimes Naive Problem Description Rhason Cheung had a naive problem, and asked Teacher Mai for help. But Teacher Mai thought this problem was too si 阅读全文
posted @ 2017-04-10 20:17 meekyan 阅读(381) 评论(0) 推荐(0) 编辑
摘要: Dylans loves tree Problem Description Dylans is given a tree with N nodes.All nodes have a value A[i].Nodes on tree is numbered by 1∼N.Then he is give 阅读全文
posted @ 2017-04-10 15:01 meekyan 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 2243: [SDOI2011]染色 Description 给定一棵有n个节点的无根树和m个操作,操作有2类: 1、将节点a到节点b路径上所有点都染成颜色c; 2、询问节点a到节点b路径上的颜色段数量(连续相同颜色被认为是同一段),如“112221”由3段组成:“11”、“222”和“1”。 请你 阅读全文
posted @ 2017-04-10 14:02 meekyan 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Ba Gua Zhen Problem Description During the Three-Kingdom period, there was a general named Xun Lu who belonged to Kingdom Wu. Once his troop were chas 阅读全文
posted @ 2017-04-06 19:19 meekyan 阅读(572) 评论(0) 推荐(0) 编辑
摘要: XOR Problem Description XOR is a kind of bit operator, we define that as follow: for two binary base number A and B, let C=A XOR B, then for each bit 阅读全文
posted @ 2017-04-06 17:16 meekyan 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 2460: [BeiJing2011]元素 Description 相传,在远古时期,位于西方大陆的 Magic Land 上,人们已经掌握了用魔法矿石炼制法杖的技术。那时人们就认识到,一个法杖的法力取决于使用的矿石。一般地,矿石越多则法力越强,但物极必反:有时,人们为了获取更强的法力而使用了很多矿 阅读全文
posted @ 2017-04-06 16:33 meekyan 阅读(161) 评论(0) 推荐(0) 编辑
摘要: C. Divide by Three A positive integer number n is written on a blackboard. It consists of not more than 105 digits. You have to transform it into a be 阅读全文
posted @ 2017-03-29 11:13 meekyan 阅读(371) 评论(0) 推荐(0) 编辑
摘要: D. Felicity's Big Secret Revealed The gym leaders were fascinated by the evolutions which took place at Felicity camp. So, they were curious to know a 阅读全文
posted @ 2017-03-27 18:36 meekyan 阅读(297) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 66 下一页