/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:5: error: expected expression before 'int'
    1 | n = int(input())
      |     ^~~

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
C99 (GCC 13.2.0)
Submit At
2024-03-06 13:53:09
Judged At
2024-11-11 03:42:09
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes