无题十三

  题解: 第一题:异或的老套路,按位算贡献,统计某一位有多少个数为1,就用数位DP好了;   #include<bits/stdc++.h> using namespace std; const int M = 1e6; #define ll long long const ll mod = 1e9 + 7; int L, R, dp[35][2]; int bin[33], cnt[33],
相关文章
相关标签/搜索