#include <bits/stdc++.h> using namespace std; int a[10],n,m; int main() { cin>>n>>m; for(int i=n; i<=m; i++) { for(int tmp=i; tmp; tmp/=10) { a[tmp%10]++; } } for(int i=0; i<=9; i++) cout<<a[i]<<" "; }

0 comments

No comments so far...

Information

ID
422
Time
1000ms
Memory
256MiB
Difficulty
4
Tags
(None)
# Submissions
44
Accepted
20
Uploaded By