Hello guys!
I am new to codeforces, I stumbled upon 230A problem and my code is here. My basic idea was to create a list of list containing three things first->strength of dragon, second->bonus points, third->flag if this dragon is killed or not. Then I sorted according to bonus points and started incrementing kills if a dragon could be killed based on condition.
Please help if there is a flaw in my logic or I missed something in the code. I shall be really thankful to you. Please help.