摘要: [ZJOI2010]排列计数 题目描述 称一个1,2,...,N的排列P1,P2...,Pn是Magic的,当且仅当2Pi/2. 计算1,2,...N的排列中有多少是Magic的,答案可能很大,只能输出模P以后的值 输入输出格式 输入格式: 输入文件的第一行包含两个整数 n和p,含义如上所述。 输出 阅读全文
posted @ 2018-10-11 22:11 real_l 阅读(356) 评论(0) 推荐(0) 编辑
摘要: HDU3949 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 e 阅读全文
posted @ 2018-10-11 20:22 real_l 阅读(276) 评论(0) 推荐(0) 编辑