/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 12ms 2.664 MiB
#2 Wrong Answer 12ms 2.824 MiB
#3 Wrong Answer 12ms 2.812 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:21:29
Judged At
2024-03-27 21:21:29
Judged By
Score
0
Total Time
12ms
Peak Memory
2.824 MiB