我是小学生 • 1天前
using namespace std; int a[10], t, n;
int main() {
cin >> n; while (n--) { cin >> t; while (t >= 1) { a[t % 10]++; t /= 10; } } for (int i = 0; i <= 9; i++) { cout << a[i] << endl; } return 0;
}
评论:
请先登录,才能进行评论