Timus 1423 — String tale
I solve a problem on the Timus Online Judge.
Submit with hashing gets WA31(because of antihash). But submit with double hashing gets WA8...
Help me, please, with double hashing and solve this problem.
Interview with orz | IMO Gold Medalist, ICPC World Finalist, IGM in CF