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

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

I am trying to do this 515B - Drazil and His Happy Friends, and I wrote 87470945. It got WA. I am debugging for many hours and still cannot find the bug. My idea was to simply simulate each time the friends meet. If one of the friends are happy, then both are happy. I kept 2 vector of bools, one for boys and one for girls. In the end, I checked if all of the friends were happy. Please help.

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