Weak test cases in HISTOSIM

contest
test-cases

#1

https://www.codechef.com/ISCC2017/problems/HISTOSIM

In the problem HISTOSIM, the following test case should fail:

abcdefghijklmnopqrstuvwxyz bacdefghijklmnopqrstuvwxyz

Since all 26 characters of the alphabet are used there is no “temp” element to use for substitution in changing one string into another.


#2

… That’s explained in the rules right?

1. Replace only happens when new character doesn’t already exists in P.

In short, if there’s no free letter (all letter is used as you said) then the answer should be “NO”.


#3

Explained in the rules, yes. There is no test case however that checks for YES or NO in such a condition. My code that gives YES got AC.