The 1st Universal Cup Stage 8: Slovenia, March 18-19, 2023(Differences-字符串hash)
WehavealistofNstringsSi.AllstringshavelengthMandconsistonlyofcharactersA,B,CandD.LetusdefinethedistancebetweentwostringsXandYasthenumberofindicesj,wherethestringshavedifferentcharacters(Xj̸=Yj).Weknow