Comment

avatar username

I am using a multiset here because i'll insert the remaining health of the suriving elf in the multiset after removing both the elf (the attacker and the elf being attacked in my case they are 2nd max and maximum of the multiset).

So, it can be possible that the suriving elf have a health equal to some existing one. For example : 1 ... 3 4 5 8 then 5 attack 8 (or 8 attack 5) : 5 dies and 8 surivied. So, i'll remove 5, 8 form my multiset and add (8-5) in the mutliset. But there was a 3 already so, a multiset is needed.

Also I had linked the entire code too. (p.sc is the health value and p.fs is index) (sc means second and fs first)

Lemme do it again : 355403171

The actual rating of this user is 1360.

Original comment.

Statistics