/ SeriousOJ /

Record Detail

Wrong Answer


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

Code

/**
*	author: shafi
*	created: 06.03.2024 17.36.23
**/
#include "bits/stdc++.h"
using namespace std;
#define ll long long int
#define ull unsigned long long int

int main(){
    ios :: sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    
    int n;
    cin>>n;
    string str;
    cin>>str;
    int m = count(str.begin(),str.end(),'M');
    int e = count(str.begin(),str.end(),'E');
    int idk = count(str.begin(),str.end(),'?');
    m += idk;
    e += idk;
    if(m>e){
        cout<<"Mahfuz\n";
    }
    else if(e>m){
        cout<<"Emon\n";
    }
    else{
        cout<<"IDK\n";
    }
    return 0;
}

Information

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