#include
#define ll long long int
#define ull unsigned long long int
#define llb long double
#define fast ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define el cout<<"\n"
using namespace std;
int main() {
int t;
cin>>t;
while(t--)
{
ll l,r;
cin>>l>>r;
ll res=r/4+r/7+r/11;
ll tmp;
tmp=r/(4*7);
res-=tmp;
tmp=r/(4*11);
res-=tmp;
if (tmp>=7)
res+=tmp/7;
res-=r/(7*11);
res+=1;
//cout<=7)
res1+=tmp/7;
res1-=l/(7*11);
res1+=1;
cout<
Số đẹp 3 - Luyện Code Online
https://oj.luyencode.net/problem/DIVISIBLE