Wrong Answer
Code
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
string s;
cin>>s;
int emon=0;
int mah= 0;
for(int i=0; i<n; i++){
if(s[i]=='E'){
emon++;
}else if(s[i]=='M'){
mah++;
}else{
continue;
}
}
if(emon>mah){
cout<<"Emon"<<endl;
}else if(mah>emon){
cout<<"Mahfuz"<<endl;
}else{
cout<<"IDK"<<endl;
}
}
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 14:53:30
- Judged At
- 2024-11-11 03:41:47
- Judged By
- Score
- 20
- Total Time
- 2ms
- Peak Memory
- 548.0 KiB