/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 12ms 2.777 MiB
#2 Wrong Answer 13ms 2.887 MiB
#3 Wrong Answer 13ms 2.875 MiB

Code

T = int(input())
for i in range(T):
    S = str(input())
    x = S.count("p")
    y = S.count("q")
    
    if x > y:
        print("ROY")
    elif y > x:
        print("Mahfuj")
    elif x == y:
        print("draw")

Information

Submit By
Type
Submission
Problem
P1040 Character game
Language
Python 3 (Python 3.12.3)
Submit At
2024-03-27 21:26:15
Judged At
2024-03-27 21:26:15
Judged By
Score
0
Total Time
13ms
Peak Memory
2.887 MiB