Wednesday, August 20, 2014

COJ 1043. Simple Dishes

Here is a very simple but good approach, we loop from the right to left over our dishes and whenever we see one we can take we sure take it and decrease the mass bye the dish we just took which will eventually work out the answer itself.


       FULL SOURCE CODE

No comments:

Post a Comment