forked from abheekd/usaco-practice
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.
15 lines
224 B
15 lines
224 B
3 years ago
|
#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 << " ";
|
||
|
}
|