Qualified's blog

By Qualified, history, 4 years ago, In English

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.

  • Vote: I like it
  • -5
  • Vote: I do not like it