/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 540.0 KiB
#2 Accepted 1ms 540.0 KiB
#3 Accepted 1ms 496.0 KiB
#4 Accepted 1ms 540.0 KiB

Code

/*CODED BY mahmudulsakib2019
  DATE:-12/03/2024;TIME:-01:57 am
  BANGALDESH , SYLHET*/

#include <iostream>
#include <cmath>     ///mathematics
#include<cstdlib>    ///for std::exit(EXIT_SUCCESS)
#include <vector>    ///array
#include <regex>     ///searching_prefix_suffix
#include <algorithm> ///finding_max_min_from_array
#include <string>    ///string_manipulation
#include <numeric>   ///findin total sum of an array
using namespace std;

int main() {
    int t;
    cin >> t;
    string ch;
    cin >> ch;
    if(ch[t-1]=='M'){
        cout << "Mahfuz" << endl;
    }
    else if(ch[t-1]=='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-11 19:58:00
Judged At
2024-03-11 19:58:00
Judged By
Score
100
Total Time
2ms
Peak Memory
540.0 KiB