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

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

The Problem is this. I made some naive solution which got AC, then I optimized my solution using vectors and I am getting one solution getting WA in C++17 and the same one getting AC in C++20.

AC in C20 175129943

WA in C17 175130535

I for sure know that I am triggering some undefined behavior here or else this wont happen. Maybe its the equality check of vectors using the == operator.

But I am not sure.

Thanks.

Полный текст и комментарии »

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