/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 15ms 2.965 MiB
#2 Wrong Answer 15ms 3.078 MiB
#3 Wrong Answer 15ms 2.898 MiB

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:51:13
Judged At
2024-11-11 03:42:09
Judged By
Score
20
Total Time
15ms
Peak Memory
3.078 MiB