Блог пользователя sabry_ragab

Автор sabry_ragab, 10 лет назад, По-английски

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

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
10 лет назад, # |
  Проголосовать: нравится +8 Проголосовать: не нравится

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.