Hello,
I am practicing by solving older code jam problems, and I don't know why my
solution is not accepted (WA). Anyone to check my code and tell me what's
wrong please?
My logic:
I define a maxlen which will be the max length of all contestants
strategies.
I iterate through the list of contesta
UPDATE!!!
needed to manage the case where a robot restart from the beginning of his
strategy.
So, I removed beaten contestant step by step
T = int(input())
>
> beat = {"P":"S", "R":"P", "S":"R"}
> for t in range(T):
>
> N = int(input())
> contestants = []
> out = ""
> maxlen = 0
>