Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m=0,e=0;
cin>>n;
string ch;
for(int i=0;i<ch.length();i++)
{
if(ch[i]=='M')
{
m++;
}
else if(ch[i]=='E')
{
e++;
}
}
if(m>e)
{
cout<<"Mahfuz"<<endl;
}
else if(e>m)
{
cout<<"Emon"<<endl;
}
else{
cout<<"IDK"<<endl;
}
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 13:38:42
- Judged At
- 2024-11-11 03:42:16
- Judged By
- Score
- 20
- Total Time
- 1ms
- Peak Memory
- 552.0 KiB