cp-wiki
cp-wiki copied to clipboard
AtCoder Beginner Contest 187 Editorial
AtCoder Beginner Contest 187 Editorial | CP Wiki
Use two HashSets to store strings with ! and without ! separately. If their intersection is non-empty, we can output any string in it, otherwise we output satisfiable.
thanks bro