/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Wrong Answer 1ms 324.0 KiB
#3 Wrong Answer 1ms 320.0 KiB

Code

#include<iostream>
using namespace std;

int main()
{
    int n,sum_E=0,sum_M=0;
    scanf("%d",&n);
    char word[n];
    scanf("%s",&word);
    for(int i=0;i<n;i++)
    {
        if(word[i]=='E')
        {
            sum_E++;
        }
    }
    for(int i=0;i<n;i++)
    {
        if(word[i]=='M')
        {
            sum_M++;
        }
    }
    if(sum_M>sum_E)
    {
        printf("Mahfuz\n");
    }
    else if(sum_M<sum_E)
    {
        printf("Emon\n");
    }
    else
    {
        printf("IDK\n");
    }
    return 0;
}

Information

Submit By
Type
Submission
Problem
P1031 Clash of programmers
Contest
Brain booster #2
Language
C++20 (G++ 13.2.0)
Submit At
2024-03-06 15:02:21
Judged At
2024-11-11 03:41:44
Judged By
Score
20
Total Time
1ms
Peak Memory
532.0 KiB