In this problem 150A - Win or Freeze
The problem writer said :
" If there are multiple solutions, print any of them ".
And my code printed a valid output put it gave me wrong answer as it is "bad position " , i don`t know what is this mean ?
code : 10421263
This position is bad, because second player can write number 9409 (912673 = 9409*97). By this move he wins, because first player have to write 97 (9409 = 97*97) and 97 is prime number.
Got it thank you