#include #define FOR(i,bg,ed) for(ll i=(bg);i<(ed);i++) #define REP(i,n) FOR(i,0,n) #define MOD 1000000007 #define int long long using namespace std; typedef long long ll; typedef vector> mat; const int INF = 1e9; int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } int lcm(int a, int b) { return a / gcd(a, b) * b; } //L以上、H以下の整数のうちCで割り切れる数の個数を返す int divNum(int L, int H, int C) { return H/C - (L-1)/C; } int N, L, H; int C[15]; signed main() { cin >> N >> L >> H; REP(i,N) cin >> C[i]; int ans = 0; REP(i,N) { //ans += divNum(L, H, C[i]); vector CC; REP(j,N) if (i != j) CC.push_back(C[j]); REP(mask,1<