Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Numerics;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Threading.Tasks;
- namespace solutions
- {
- class Program
- {
- public static void Main()
- {
- var input = Console.ReadLine();
- var result = new SortedDictionary<char, int>();
- foreach (var item in input)
- {
- if (!result.ContainsKey(item))
- {
- result.Add(item, 0);
- }
- result[item]++;
- }
- foreach (var item in result)
- {
- Console.WriteLine($"{item.Key}: {item.Value} time/s");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement