From 9fc85722fef3c95e7001ba6f94e797747a9d81ec Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Wed, 15 Jan 2025 21:06:34 +0000 Subject: [PATCH] solutions: 43A --- solutions/python/43A.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 solutions/python/43A.py diff --git a/solutions/python/43A.py b/solutions/python/43A.py new file mode 100644 index 0000000..085c040 --- /dev/null +++ b/solutions/python/43A.py @@ -0,0 +1,11 @@ +n = int(input()) + +goals = {} + +for _ in range(n): + team = input() + if team not in goals: + goals[team] = 0 + goals[team] += 1 + +print(max(goals, key=goals.get))