/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Wrong Answer 15ms 3.074 MiB
#2 Wrong Answer 15ms 2.98 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-11-11 03:37:02
Judged By
Score
0
Total Time
15ms
Peak Memory
3.074 MiB