[code jam] code jam 2019 round 1C - Robot strategy - WA

2022-05-02 Thread Thierry Njike
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

[code jam] Re: code jam 2019 round 1C - Robot strategy - WA

2022-05-02 Thread Thierry Njike
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 >