cantThinkOfGoodUsername's blog

By cantThinkOfGoodUsername, history, 5 years ago, In English

My code works and gives correct output on my computer but not here on Codeforces. Can anyone tell me why? 1283C - Друзья и подарки 67832300

»
5 years ago, # |
  Vote: I like it +1 Vote: I do not like it

I think you should also initialize the boolian arrays "hasgot" and "hasgiven" to false or it may take garbage values. Correcting that works fine. 67841561