| # | Problem | Pass Rate (passed user / total user) |
|---|---|---|
| 12229 | GEC1506 - Basic - Top 3 |
|
Description
Given a few lines of text, you need to parse it and perform the following requirements.
Input
In this assignment, a few lines of text will be given as an input.
The format for each line of the text are
char,num
Hint: Not all num is Integer !!!!!!
Output
You will need to read the given input and sum the total number of each character.
You don't need to take care the numbers of the decimal for the result number.
Then, print out only the top 3 as your output results.
Note that the input and output below is just a sample test case.
Please DO NOT directly use it as your input.