0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-27 19:56:28 +00:00

P1554 梦中的统计

R36226094
This commit is contained in:
Baoshuo Ren 2020-08-02 15:10:47 +08:00 committed by Baoshuo Ren
parent 45c391d79d
commit 53eb0f769b
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

20
problem/P1554/P1554.cpp Normal file
View File

@ -0,0 +1,20 @@
// https://www.luogu.com.cn/record/36226094
#include <bits/stdc++.h>
using namespace std;
int n, m, js[10];
int main() {
cin >> n >> m;
for(int i = n ; i <= m ; i++) {
for(int j = i ; j ; j /= 10) {
js[j%10]++;
}
}
for(int i = 0 ; i < 10 ; i++) {
cout << js[i] << " ";
}
return 0;
}