摘要: E. XOR and Favorite Number Bob has a favorite number k and ai of length n. Now he asks you to answer m queries. Each query is given by a pair li and r 阅读全文
posted @ 2016-04-28 22:40 meekyan 阅读(239) 评论(0) 推荐(0) 编辑
摘要: C. Little Artem and Random Variable Little Artyom decided to study probability theory. He found a book with a lot of nice exercises and now wants you 阅读全文
posted @ 2016-04-28 16:23 meekyan 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 1005: [HNOI2008]明明的烦恼 Description 自从明明学了树的结构,就对奇怪的树产生了兴趣......给出标号为1到N的点,以及某些点最终的度数,允许在任意两点间连线,可产生多少棵度数满足要求的树? 自从明明学了树的结构,就对奇怪的树产生了兴趣......给出标号为1到N的点, 阅读全文
posted @ 2016-04-28 15:24 meekyan 阅读(685) 评论(0) 推荐(2) 编辑