Wrong Answer
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');
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:39:20
- Judged At
- 2024-11-11 03:41:16
- Judged By
- Score
- 20
- Total Time
- 1ms
- Peak Memory
- 340.0 KiB