《
这是为什么》
#include<bits/stdc++.h>
using namespace std;
int a, b;
int tot = 13;
int ans = 0;
int a_i[10005] = {990, 1010, 19770, 2030, 2940, 3060, 3930, 4060, 4970, 5030, 5990, 6010, 7000};
void dfs(int k, int hav)
{
for(int i = hav; i < tot ;i++)
{
if(a_i[i] - k >= a && a_i[i] - k <= b)
{
ans++;
dfs(a_i[i], i);
}
}
return;
}
int main()
{
cin >> a >> b;
int p, x;
cin>>p;
for(int i = 1; i <= p; i++)
{
cin>>x;
a_i[tot] = x;
tot++;
}
sort(a, a + tot);
dfs(0, 0);
cout << ans;
return 0;
}