sabry_ragab's blog

By sabry_ragab, 10 years ago, In English

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

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
10 years ago, # |
  Vote: I like it +8 Vote: I do not like it

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.