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

Автор hacker696969, история, 4 года назад, По-английски

Hello CF Community,

I am new to competitive programming and recently have been learning STL ,I wanted to ask that if i want to erase the smallest value and also keep on iterating, if I am writing the following code, I am getting garbage values.

I know that there are other ways to do this but I wanted a modification of my code ,and also I wanted to know that is it not possible to traverse set while simultaneously erasing elements.

Code

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

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