Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
79497 sh25_zhuhy 梦中的统计 C++ Accepted 0 MS 244 KB 392 2026-01-04 14:22:42

Tests(1/1):


#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 ; }


Judgement Protocol: