/ SeriousOJ /

Record Detail

Wrong Answer


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