/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 492.0 KiB
#2 Accepted 2ms 332.0 KiB
#3 Accepted 2ms 540.0 KiB
#4 Accepted 2ms 488.0 KiB

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