Codeforces и Polygon могут быть недоступны в период с 23 мая, 7:00 (МСК) по 23 мая, 11:00 (МСК) в связи с проведением технических работ. ×
Изменения рейтингов за последние раунды временно удалены. Скоро они будут возвращены. ×
Why does my code only take in part of the input?
Разница между en2 и en3, 87 символ(ов) изменены
I'm writing code that takes in a "maze" and runs bfs.  I have already solved it for small test cases, but the code for taking in input fails on large test cases.↵

Given W (1 <= W <= 38), the width of the maze; H (1 <= H <= 100), the height of the maze; 2*H+1 lines with width 2*W+1 characters that represent the maze in a format like this:↵

<spoiler summary="Example of a 5X3 Maze">↵
https://pastebin.com/DHXx0gkX↵
</spoiler>↵

<spoiler summary="Example of a 25x25 Maze - Code Fails on This Input">↵
https://pastebin.com/LVu0FA2a↵
</spoiler>↵

<spoiler summary="Code To Take In Maze">↵
https://pastebin.com/1yxZA0N0↵
</spoiler>↵

Issue: The loop that takes in the maze stops when i = 19 for the 25x25 maze.↵

EDIT: Clarification &mdash; "taken" will never be printed on the failing test case.↵

Any ideas what's causing this?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский bradyawn 2017-10-23 17:00:37 1472
en3 Английский bradyawn 2017-10-22 19:08:22 87
en2 Английский bradyawn 2017-10-22 19:06:58 0 (published)
en1 Английский bradyawn 2017-10-22 19:06:08 795 Initial revision (saved to drafts)