/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 320.0 KiB
#2 Wrong Answer 1ms 284.0 KiB
#3 Wrong Answer 0ms 284.0 KiB

Code

#include <stdio.h>
#include <string.h>

int main(){

    int m = 0, e = 0, n;

    scanf("%d", &n);
    char ara[n];

    for (int i = 0; i < n; i++){
        //fflush(stdin);
        scanf("%c", &ara[i]);
    }

    for (int i = 0; i < n; i++){
        if (ara[i] == 'M'){
            m++;
        }
        else if( ara[i] == 'E'){
            e++;
        }
    }

    if (m > e){
        printf("Mahfuz\n");
    }

    else if (e > m){
        printf("Emon\n");
    }

    else{
        printf("IDK\n");
    }
    //printf("%d %d", m, e);
    return 0;
}


Information

Submit By
Type
Submission
Problem
P1031 Clash of programmers
Contest
Brain booster #2
Language
C99 (GCC 13.2.0)
Submit At
2024-03-06 15:20:26
Judged At
2024-11-11 03:41:41
Judged By
Score
20
Total Time
1ms
Peak Memory
320.0 KiB