For this problem USACO , why does the editorial (Contest Results) says .BBA.AA
?
Shouldn’t it be .AAB.BB
, since A =GH, and the original inputted string is GGGHGHHGHHHGHG
?
For this problem USACO , why does the editorial (Contest Results) says .BBA.AA
?
Shouldn’t it be .AAB.BB
, since A =GH, and the original inputted string is GGGHGHHGHHHGHG
?
Yeah, there’s a mistake. The definitions of A and B should be swapped. Let me know if it makes sense now.