/ SeriousOJ /

Record Detail

Wrong Answer


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

Code

#include <bits/stdc++.h>

using namespace std;
int main()
{
    int n;
    cin>>n;
    string s;
    cin>>s;
    int mah=0;
    int emo =0;
    
    for (int i=0;i<=n;i++){
        if (s[i]=='M'){
            mah++;
        }
        else if (s[i]=='E'){
            emo++;
        }
        

    }
    if (mah>emo){
        cout<< "Mahfuz";
    }
    else if (emo>mah){
        cout<<"Emon";
    }
    else {
        cout<<"IDK";
    }
}

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:08
Judged At
2024-11-11 03:41:44
Judged By
Score
0
Total Time
2ms
Peak Memory
532.0 KiB