Wrong Answer
Code
n = int(input())
a = input()
lst = []
E = 0
M = 0
for i in range(n):
s1 = a[i]
lst.append(s1)
for i in range(n):
if lst[i] == 'E':
E = E+1
elif lst[i] == 'M':
M = M+1
else:
continue
if E > M:
print("Emon")
elif E == M:
print("IDK")
else:
print("Mahfuz")
Information
- Submit By
- Type
- Submission
- Problem
- P1031 Clash of programmers
- Contest
- Brain booster #2
- Language
- Python 3 (Python 3.12.3)
- Submit At
- 2024-03-06 13:54:12
- Judged At
- 2024-11-11 03:42:08
- Judged By
- Score
- 20
- Total Time
- 15ms
- Peak Memory
- 3.117 MiB