#include <bits/stdc++.h>
using namespace std;
int main(){
int start,end,number;
cin>>start>>end;
int a[10]={0};
for (int i=start;i<=end;i++){
while(i>=10){
number=i%10;
a[number]++;
i=i/10;
}
a[i]++;
}
for (int j=0;j<10;j++){
cout<<a[j]<<" ";
}
return 0;
}
尝试调试了一下,不知道为什么第十行运行不了