Python - rozwiązanie¶ 1 2 3 4 5 6 7 8 9 10 11 12 13counters = dict() n = int(input()) for _ in range(n): country = input().split(" ")[0] if country in counters: counters[country] += 1 else: counters[country] = 1 for country in sorted(counters): print(f"{country} {counters[country]}")