Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор AlTarek, история, 14 месяцев назад, По-английски

in this Problem https://codeforces.com/contest/1829/problem/E

I Got a runTime Error because of this way of resizing my vector

grid.resize(n, vector(m));

but when I used this

grid = vector<vector>(n, vector(m));

it worked ?! What is the difference?

https://codeforces.com/contest/1829/submission/205458152 => Runtime Error

https://codeforces.com/contest/1829/submission/205697075 => Acc

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