2018年2月26日

摘要: #include #include #include using namespace std; typedef long long LL; const LL N=2e6;// 题目太坑了 提交 1e6会莫名错误 const LL mod=1e9+7; LL f[N+7]; LL inv_f[N+7]; LL n,m,k; LL q_pow (LL x,LL k) {//快速幂求逆元 ... 阅读全文
posted @ 2018-02-26 16:12 xidian_mao 阅读(352) 评论(0) 推荐(0) 编辑
 
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int b=6;//进制 6 int B[15]; 7 int mapp[1010];// id 映射 8 int val[200];// 价值 9 int cost[200];// 花费 10 int dp[66666];//状态下的最小花费 ... 阅读全文
posted @ 2018-02-26 13:57 xidian_mao 阅读(524) 评论(0) 推荐(0) 编辑