Hack
Now
EN
Login
Register
HackNow
Oraliqda harf chastotasi | HackNow
Go back
Reading Mode
Problem
Submissions
Oraliqda harf chastotasi
lock
UZ only
O'rta
25 points
1500 ms
256 MB
Input format
Output format
Constraints
Examples
2
1
Example #1
Input
8 3 abcdabcd 1 8 a 2 6 c 3 3 c
Output
2 1 1
2
Example #2
Input
3 1 aaa 1 3 a
Output
3
Solution editor
Python 3
Clear
Language
PYTHON
UTF-8
Tab
4 spaces
Ctrl
+
Enter
Submit
Submit