Typo in USACO Bronze 2022 - Photoshoot

Hello! While reading through the solution of Photoshoot for Bronze, I noticed a typo!

“”
Consider replacing every length-two substring of the input string with

  • . if the two characters are equal
  • A if the substring is GH
  • B if the substring is HG

For example, the sample input would be transformed as follows:

GG|GH|GH|HG|HH|HG|HG → .BBA.AA
“”

If you look carefully, you’ll notice that the A and B should be swapped. The character A represents instances of HG in the modified string below but refers to GH above. If possible, please have this fixed.

Thanks for pointing this out. Actually, I think this was fixed a while back but for some reason the version on the website is not the latest version. Let me ask about that …