PBCDIV - Phép chia hết
Tác giả: hieult
Ngôn ngữ: C++
#include <cstdio>
//#include <conio.h>
long long xuly(long long n){
return n/12+n/30-(n/60)*2;
}
int main(){
int test;
long long A,B;
scanf("%d",&test);
for(int itest = 1;itest<=test;itest++){
scanf("%lld %lld",&A,&B);
printf("%lld\n",xuly(B)-xuly(A-1));
}
// getch();
}