| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79381 | sh25_shenpy | 梦中的统计 | C++ | 通过 | 0 MS | 248 KB | 392 | 2026-01-03 20:34:56 |
#include <bits/stdc++.h> using namespace std ; int a[10] ; void func(int n ) { int m = n ; while(m) { a[m % 10]++ ; m /= 10 ; } } int main() { int m , n ; cin >> m >> n ; for(int i = m ; i <= n ; i++ ) func(i) ; for(int i = 0 ; i < 10 ; i++ ) cout << a[i] << ' ' ; cout << endl ; return 0 ; }