Algorithm of 591 - Box of Bricks

Problem Description Link

It is a simple problem read carefully and solve easilly .
one condition for print output
ie.
printf("Set #%ld\n",k);
printf("The minimum number of moves is %ld.\n\n",result);
image

No comments:

Post a Comment

Write your comment - Share Knowledge and Experience