anyone pls help me implement the m = 0 case for D.
My logic that I thought during contest was something like storing the elfs in multiset and then attacking largest and second largest and thus second largest dies and largest hurts. So, i remove(both) and insert(the health after hurting) in multiset.
anyone pls help me implement the m = 0 case for D.
My logic that I thought during contest was something like storing the elfs in multiset and then attacking largest and second largest and thus second largest dies and largest hurts. So, i remove(both) and insert(the health after hurting) in multiset.
Any help will be appreciated
code :
full code : 355403171