0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-30 18:56:26 +00:00
OI-codes/Luogu/P1554/P1554.cpp

21 lines
346 B
C++
Raw Normal View History

2020-08-02 07:10:47 +00:00
// https://www.luogu.com.cn/record/36226094
#include <bits/stdc++.h>
using namespace std;
int n, m, js[10];
int main() {
2021-11-19 09:01:13 +00:00
cin >> n >> m;
for (int i = n; i <= m; i++) {
for (int j = i; j; j /= 10) {
js[j % 10]++;
2020-08-02 07:10:47 +00:00
}
2021-11-19 09:01:13 +00:00
}
for (int i = 0; i < 10; i++) {
2020-08-02 07:10:47 +00:00
cout << js[i] << " ";
}
return 0;
}