Wrong Submission for 1


#1

Even explicitly setting the test case for A == “1” results in incorreto n submission (but not in testing).


#2

This is not good, but in the question they mention k>=1, for k=0, output is 1. I think they are testing how clearly we read the input specification.