Day1开题前还是很忐忑的~~题目一刷出来~~A题第一眼印象很不好~~又长还有图~~先跳过~~B题~~嘿嘿嘿嘿~~水之~~这个....直接贴代码...
Program:
#include<iostream>
#include<algorithm>
#include<stdio.h>
#include<string.h>
#include<cmath>
#include<queue>
#define oo 2000000000
#define ll unsigned long long
using namespace std;
ll x,a,b,i,k,k1,k2;
int T;
int main()
{
cin>>T;
while (T--)
{
cin>>x>>a>>b;
if (x) i=(ll)log10(x);
else i=0;
k=10;
while (i--) k*=10;
k1=b/k;
if (b%k>=x) k1++;
a--;
k2=a/k;
if (a%k>=x) k2++;
k1-=k2;
cout<<k1<<endl;
}
return 0;
}