cantThinkOfGoodUsername's blog

By cantThinkOfGoodUsername, history, 7 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 - Friends and Gifts 67832300

»
7 years ago, hide # |
 
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