My code runs with the following input:For each puzzle line in the input, a single line of output should be produced, containing the number of DIFFERENT words in the dictionary that can be formed using the letters in the puzzle line.
Code: Select all
ant
bee
cat
dog
ewe
fly
gnu
abcdefgh
abcdefghij
x
x
xxx
y
z
#
b e w
b b e e w w
t a n c u g d
x
x y
x y z
x x x
#
Code: Select all
0
2
3
1
2
3
2
However, if I change my code to make the output to
Code: Select all
0
2
3
2
3
4
3
Here is my submission history for this problem:
So I believe the backend is INCORRECT. If a word appears twice in the input dictionary, it should NOT be counted twice in the output.# Problem Verdict Language Run Time Submission Date
12438310 895 Word Problem Accepted C++ 0.015 2013-10-03 06:02:01
12438183 895 Word Problem Wrong answer C++ 0.019 2013-10-03 05:33:34