You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
224 B
14 lines
224 B
#include <iostream>
|
|
using namespace std;
|
|
|
|
int main() {
|
|
bool solution;
|
|
string x;
|
|
cin >> x;
|
|
int c[26];
|
|
for (int i = 0; i < x.length(); i++) {
|
|
c[(int)x.at(i) - 48]++;
|
|
}
|
|
for (int i : c)
|
|
cout << i << " ";
|
|
}
|
|
|