[题目链接] http://codeforces.com/contest/451/problem/E [算法] 容斥原理 [代码] #include<bits/stdc++.h> using namespace std; typedef long long ll; ; int i,j,n,s,ans,MASK; ll m,t; ll a[],f[]; ]; inline int power(int a,int n) { ,b = a; while (n) { ) res = 1ll * res…