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

Автор hell_hacker, история, 8 лет назад, По-английски

My approach for ChessMetric is to find all the positions reachable from position start, then put them in a queue of tuples where first and second elements are the co-ordinates and the third is number of moves. But it is giving Memory limit exceeded. Any idea how to make this efficient? I used unsigned short int for co-ordinates and number of moves.

Thank You.

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