3-3 数数字 UVa1225

#include <vector>
#include <iostream>
#include <string>
using namespace std;
int main()
{
	string word;
	cin >> word;
	vector<int> num(10);
	for (auto a : word)
	num[a - '0']++;
	for (auto a : num)
	cout << a << " ";
	cout << endl;

	return 0;
}

猜你喜欢

转载自blog.csdn.net/fuwu4087/article/details/80382025