#include #include using namespace std; int main(void){ int N, H, L; int count = 0; cin >> N >> L >> H; vector C; for (int i = 0; i < N; i++){ int x; cin >> x; C.push_back(x); } for (int i = L; i < H+1; i++) { int flag = 0; for (int j = 0; j < N; j++) { if (i%C[j] == 0) { flag += 1; } } if (flag == 1) { count += 1; } } cout << count << endl; return 0; }