Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
string s;
cin>>s;
int a = s.size()-1;
if(s[a]=='M')
{
cout<<"Mahfuz"<<endl;
}
else if(s[a]=='E')
{
cout<<"Emon"<<endl;
}
else{
cout<<"IDK"<<endl;
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1031 Clash of programmers
- Language
- C++20 (G++ 13.2.0)
- Submit At
- 2024-03-07 19:18:34
- Judged At
- 2024-11-11 03:41:06
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 540.0 KiB